tftn ru.cs 894 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. namespace MyProject
  3. {
  4. class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. Console.WriteLine("Введите число 1");
  9. string str = Console.ReadLine();
  10. int a = Convert.ToInt32(str);
  11. Console.WriteLine("Введите число 2");
  12. string str2 = Console.ReadLine();
  13. int b = Convert.ToInt32(str2);
  14. Console.WriteLine("Введите число 3");
  15. string str3 = Console.ReadLine();
  16. int c = Convert.ToInt32(str3);
  17. int sum = a + b + c;
  18. int quotient = a * b * c;
  19. Console.WriteLine("Сумма этих чисел равна " + sum);
  20. Console.WriteLine("Частное этих чисел равно " + quotient);
  21. Console.ReadLine();
  22. }
  23. }
  24. }