2.Perbandingan angka
using System;
namespace perbandingan_angka_0320100019
{
///
/// Summary description for Class1.
///
class Class1
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
int b,c;
int[] a;
a = new int[3];
Console.Write("A = ? ");
a[0] = Convert.ToInt32(Console.ReadLine());
Console.Write("B = ? ");
a[1] = Convert.ToInt32(Console.ReadLine());
Console.Write("C = ? ");
a[2] = Convert.ToInt32(Console.ReadLine());
c = a[0];
for(b=1;b<=2;b++)
{
if(c
{
c = a[b];
}
}
Console.WriteLine("Bilangan Terbesar Adalah {0}",c);
Console.ReadLine();
}
}
}
Diposting oleh
Lilis Nur-Rahman khalifah
|
Langganan:
Posting Komentar (Atom)
1 komentar:
ok, just checking. Radix
Posting Komentar