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;
- namespace ConsoleApplication1
- {
- class muvelet
- {
- public static float osszead(int x, int y)
- {
- float osszeadas=x+y;
- return osszeadas;
- }
- public static float kivon(int x, int y)
- {
- float kivonas=x-y;
- return kivonas;
- }
- public static float szoroz(int x, int y)
- {
- float szorzas=x*y;
- return szorzas;
- }
- public static float oszt(int x, int y)
- {
- float osztas=x/y;
- return osztas;
- }
- public static void Koszon()
- {
- Console.WriteLine("Szia!");
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Irja be az x és y értékét!:");
- int x=Convert.ToInt32(Console.ReadLine());
- int y=Convert.ToInt32(Console.ReadLine());
- Console.WriteLine(muvelet.osszead(x,y));
- Console.WriteLine(muvelet.kivon(x, y));
- Console.WriteLine(muvelet.szoroz(x, y));
- Console.WriteLine(muvelet.oszt(x, y));
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement