1- Write a program that displays the following figure
Note: asks the user for the number of rows and number of columns
a b
a b a b…
b a b a b a…….
a b a b a b…
b a b a b a…….
1- Write a program that displays the following figure
Note: asks the user for the number of rows and number of columns
a b
a b a b…
b a b a b a…….
a b a b a b…
b a b a b a…….
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted May 13, 2013, 6:40 AM
Pankaj PandeyPosted May 13, 2013, 1:37 AM
{
int x=1+(n-1);
for (int j=i;j
if(j%2==0)
{
console.write("b,");
}
else
{
console.Write("a,);
}
}
console.writeline();
}
try it...if helped mark as answered...
thanks