using System;
namespace Perbandingan_Angka_024
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
//
// TODO: Add code to start application here
//
int x,y,z;
Console.Write("A = ? ");
x=Convert.ToInt32(Console.ReadLine());
Console.Write("B = ? ");
y=Convert.ToInt32(Console.ReadLine());
Console.Write("C = ? ");
z=Convert.ToInt32(Console.ReadLine());
if(x>y && x>z)
{
Console.WriteLine("Bilangan terbesar adalah {0}",x);
}
if(y>x && y>z)
{
Console.WriteLine("Bilangan terbesar adalah {0}",y);
}
if(z>x && z>y)
{
Console.WriteLine("Bilangan terbesar adalah {0}",z);
}
Console.ReadLine();
}
}
}
0 comments:
Post a Comment