For...For...Loop(Nested Loop) Condition and Find * pattern_11
///5
///44
///333
///2222
///11111
int i, j, n;
Console.Write("Enter number of
lines.....>");
n = Convert.ToInt32(Console.ReadLine());
for (i = n; i >= 1; i--)
{
for (j = n; j >= i; j--)
{
Console.Write(i);
//Console.Write("");
}
Console.ReadLine();
}
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos
0 comments
Post a Comment