Advertisement
Shtiler

Untitled

Sep 11th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace homework_2
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int num1;
  14. int num2;
  15. int num3;
  16. int sum;
  17. Console.WriteLine("Insert The First Number: ");
  18. num1 = int.Parse(Console.ReadLine());
  19. Console.WriteLine("Insert The Second Number:");
  20. num2 = int.Parse(Console.ReadLine());
  21. Console.WriteLine("Insert The Third Number: ");
  22. num3 = int.Parse(Console.ReadLine());
  23. sum = num1 + num2;
  24. Console.WriteLine("The Sum Of The First Number + Second Number Times The Third: " + sum*num3);
  25. Console.ReadLine();
  26.  
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement