For...For...Loop(Nested Loop) Condition and Find * pattern_21
///1
///01
///101
///0101
///10101
int i, j, n;
Console.Write("Enter number of
lines.....>");
n = Convert.ToInt32(Console.ReadLine());
for (i = 1; i <= n; i++)
{
for (j = i; j >= 1; j--)
Console.Write(j % 2);
Console.ReadLine();
}
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos
0 comments
Post a Comment