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 ConsoleApp7
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("--- 8. feladat ---");
- Console.WriteLine("Kérem a 32 cm-es pizza árát!");
- int P32Ar = int.Parse(Console.ReadLine());
- Console.WriteLine("Kérem a 45 cm-es pizza árát!");
- int P45Ar = int.Parse(Console.ReadLine());
- double P32EAr = P32Ar / (16 * 16 * 3.14);
- double P45EAr = P45Ar / (22.5 * 22.5 * 3.14);
- Console.WriteLine("A 32 cm-es pizza egység ára: " + P32EAr);
- Console.WriteLine("A 45 cm-es pizza egység ára: " + P45EAr);
- bool Kjobb = P32EAr < P45EAr;
- bool Njobb = P45EAr < P32EAr;
- Console.WriteLine("Jobb-e a 32 centis? " + Kjobb);
- Console.WriteLine("Jobb-e a 45 centis? " + Njobb);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement