Professional Documents
Culture Documents
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Elsoprojekt
{
class Program
{
static void Main(string[] args)
{
//Console.WriteLine("Hello world!");
// 1. feladat: Kiíratás
Console.WriteLine("próba");
// Kerület:
int kerulet = 2 * (aOldal + bOldal); // 2 * (a+b)
// Terület:
int terulet = aOldal * bOldal; // a * b
if (pizza32Ar<pizza45Ar)
{
Console.WriteLine("32 cm-es pizza jobban megéri!");
}
else if (pizza32Ar > pizza45Ar)
{
Console.WriteLine("45 cm-es pizza jobban megéri!");
}
else
{
Console.WriteLine("Teljesen mindegy!");
}
// változók átalakítása