Advertisement
bugajakab

szamolos feladat

Sep 8th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.96 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. using System;
  8. using System.Collections.Generic;
  9. using System.Text;
  10.  
  11. namespace szamologep
  12. {
  13.     class Program
  14.     {
  15.         static void Main(string[] args)
  16.         {
  17.             Console.Write
  18.                  ("Add meg az első számot: ");
  19.             double a = double.Parse(Console.ReadLine());
  20.             Console.Write
  21.                  ("Add meg a második számot: ");
  22.             double b = double.Parse(Console.ReadLine());
  23.  
  24.             Console.WriteLine
  25.                  ("A két szám összege: {0}", a + b);
  26.             Console.WriteLine
  27.                  ("A két szám különbsége: {0}", a - b);
  28.             Console.WriteLine
  29.                  ("A két szám szorzata: {0}", a * b);
  30.             Console.WriteLine
  31.                  ("A két szám hányadosa: {0}", a / b);
  32.             Console.ReadLine();
  33.         }
  34.     }
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement