pastebin

Paste Search Dynamic
Recent pastes
week
  1. namespace week
  2. {
  3. internal class Program
  4. {
  5. static void Main(string[] args)
  6. {
  7. //Inputint num;
  8. Console.Write("Choose One of the following Numbers: ");
  9. num = Convert.ToInt32(Console.ReadLine());
  10. // Algorithm &
  11.  Outputswitch (num){
  12. case 1:Console.WriteLine("Calculate area");
  13. break;
  14. case 2:Console.WriteLine("Calculate volume");
  15. break;
  16. case 3:Console.WriteLine("Calculate surface area");
  17. break;
  18. case 0:Console.WriteLine("Exit the program");break;
  19. default: Console.WriteLine("ERROR: Invalid choice ");
  20. break;
Parsed in 0.011 seconds