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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Pankaj PandeyRank #642 · 3.7K reputationPosted May 12, 2013, 9:37 PM EDT
{
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
VulpesRank #55 · 29.2K reputationPosted May 13, 2013, 2:40 AM EDT