C# Console Appication
Can we write code for a table(mathmatical) using two for loop without using + Operator?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Manoj BhoirRank #599 · 4K reputationPosted Jun 13, 2015, 9:08 PM EDT
for (int i = 0; i <= 5; i++)
{
for (int j = 0; j <= 5; j++)
{
k[i, j] = i * j;
if (k[i, j] !=0)
Console.Write("|" + k[i, j].ToString().PadLeft(3,' '));
}
Console.WriteLine();
}
| 2| 4| 6| 8| 10
| 3| 6| 9| 12| 15
| 4| 8| 12| 16| 20
| 5| 10| 15| 20| 25
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 13, 2015, 9:55 PM EDT
for (int i = 0; i <= 5; i++)
{
}