update
This commit is contained in:
19
BMI/Program.cs
Normal file
19
BMI/Program.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BMI {
|
||||
internal class Program {
|
||||
static void Main(string[] args) {
|
||||
Console.WriteLine("Adja meg a magassagat cm-ben");
|
||||
int magassag = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Adja meg a tomeget");
|
||||
int tomeg = Convert.ToInt32(Console.ReadLine());
|
||||
|
||||
double bmi = tomeg / (magassag * magassag);
|
||||
Console.WriteLine("BMI-je: " + bmi);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user