Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C# by Gianfranco ( 14 years ago )
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
float e, a, p;
Console.WriteLine("Ingrese Edad:");
e = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Ingrese Alltura(cm):");
a = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Ingrese Peso(Kg):");
p = Convert.ToInt16(Console.ReadLine());
if (p > 80 && a < 175 && e<50 || e<10 && e>6 && p<25 && p>18)
Console.WriteLine("Obeso");
else
if (a < 180 && e > 50 || e < 1 && e > 5 && p > 15 && p < 10)
Console.WriteLine("Gordo");
else
Console.WriteLine("Normal");
Console.ReadKey();
}
}
}
Revise this Paste