Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Osztoprogram
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Számláló:");
- int a = int.Parse(Console.ReadLine());
- Console.WriteLine("Nevező:");
- int b = int.Parse(Console.ReadLine());
- int c = (a / b);
- Console.WriteLine("A hányados számláló/nevező szám esetén " + c);
- double d = (double)b / a;
- Console.WriteLine("A hányados nevező/számláló szám esetén " + d);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement