Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- string name = "";
- string surname = "";
- uint age = 0;
- string zodiacType = "";
- string workPlace = "";
- Console.WriteLine("Please input your name and surname : ");
- name = Console.ReadLine();
- surname = Console.ReadLine();
- Console.WriteLine("Please input your age : ");
- age = Convert.ToUInt32(Console.ReadLine());
- Console.WriteLine("Please input your zodiac type : ");
- zodiacType = Console.ReadLine();
- Console.WriteLine("Please input your work place : ");
- workPlace = Console.ReadLine();
- string resultString = String.Format("\nYou are {0} {1}.\n" +
- "Your age is {2}.\n" +
- "Your zodiac type is {3}.\n" +
- "Your working place is {4}.",
- name, surname, age, zodiacType, workPlace);
- Console.WriteLine(resultString);
- }
- }
Add Comment
Please, Sign In to add comment