Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 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 ConsoleApplication2
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int zahl1 = Convert.ToInt32(Console.ReadLine());
  14. int zahl2 = Convert.ToInt32(Console.ReadLine());
  15. int plus = zahl1 + zahl2;
  16. int minus = zahl1 - zahl2;
  17. int mal = zahl1 * zahl2;
  18. double geteilt = zahl1 / zahl2;
  19.  
  20. Console.WriteLine(zahl1 + " + " + zahl2 + " = " + plus);
  21. Console.WriteLine(zahl1 + " - " + zahl2 + " = " + minus);
  22. Console.WriteLine(zahl1 + " x " + zahl2 + " = " + mal);
  23. Console.WriteLine(zahl1 + " : " + zahl2 + " = " + geteilt);
  24. Console.ReadKey();
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement