PROGRAM
IF1
//CODING
PROGRAM
#include
#include
void
main()
{
cout<<"===---------------**---------------===
\n";
cout<<" Program Mencari Bilangan Terbesar ";
cout<<"\n===---------------**---------------===
\n\n";
int bil1, bil2, bil3, terbesar;
cout<<"Masukkan bilangan 1 :
";
cin>>bil1;
cout<<"Masukkan bilangan 2 :
";
cin>>bil2;
cout<<"Masukkan bilangan 3 :
";
cin>>bil3;
if(bil1 > bil2)
terbesar = bil1;
else
terbesar = bil2;
if(bil3 > terbesar)
terbesar = bil3;
cout<<"Bilangan Terbesar =
"<
getch();
}
//OUTPUT
PROGRAM
0 komentar:
Posting Komentar