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 ConsoleApplication83
- {
- class Program
- {
- public static int readnumber()
- {
- Console.WriteLine("pick a number!");
- int nr = Convert.ToInt32(Console.ReadLine());
- return nr;
- }
- public static void output(int nr)
- {
- Console.WriteLine("the number you picked is {0}", nr);
- }
- static void Main(string[] args)
- {
- int number = readnumber();
- output(number);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement