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;
- using System.Threading.Tasks;
- namespace hw
- {
- class Program
- {
- static void Main(string[] args)
- {
- int dr = Convert.ToInt32(Console.ReadLine());
- for (int i = 0; i < dr; i++)
- {
- Console.WriteLine(i + " " + "Итераций"); //Лучше всего использовать для перебора чего либо с известным колличествои итераций
- }
- }
- }
- }
- namespace hw
- {
- class Program
- {
- static void Main(string[] args)
- {
- string i = Console.ReadLine();
- while (i != "1234")
- {
- i = Console.ReadLine(); //While лучше всего выполняет операцию до результата.
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement