Using C# program Draw Result
1 2
2 3
3 4
4 5
Solution :
1 2
2 3
3 4
4 5
Solution :
public static void SampleMethod() { for (int i = 1; i <= 4; i++) { for (int j = i; j <= i + 1; j++) { Console.Write(j + " "); } Console.WriteLine(); } }
0 comments:
Post a Comment