Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Write a program that prints all the numbers from 1 to N.
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ex1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("number = ");
- int number = Int32.Parse(Console.ReadLine());
- for (int i = 1; i <= number; i++)
- {
- Console.WriteLine("{0}",i);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement