Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace P02
- {
- class Program
- {
- public static void Main(string[] args)
- {
- Console.Title="n elem pramis alakba";
- int sor=1, a=1, n=47;
- for (int i = 1; i <= n; i++) {
- Console.Write("{0,2} ",i);
- if (sor==a) {
- sor++;
- a=1;
- Console.WriteLine();
- }
- else a++;
- }
- Console.Write("\n\nPress any key to continue . . . ");
- Console.ReadKey(true);
- }
- }
- }
Add Comment
Please, Sign In to add comment