Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace cikluscucc
- {
- class forics
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Hányszor fusson le a ciklus?");
- int i, cv=0;
- i = int.Parse(Console.ReadLine());
- while (cv!=i)
- {
- Console.WriteLine(cv+1);
- cv++;
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement