#include <iostream>
#include <string>
using namespace std;
int main()
{
int x;
int y;
int z;
int c;
cout<<"masukan bilangan 1 :";
cin >> x;
cout<<"masukan bilangan 2 :";
cin >> y;
cout<<"masukan bilangan 3 :";
cin >> z;
if (x>y && x>z)
{
c =x;
}
else
{
if (y>z)
{
c =y;
}
else
{
c =z;
}
}
cout << c << endl;
system("PAUSE");
return 0;
}
using namespace std;
int main()
{
int x;
int y;
int z;
int c;
cout<<"masukan bilangan 1 :";
cin >> x;
cout<<"masukan bilangan 2 :";
cin >> y;
cout<<"masukan bilangan 3 :";
cin >> z;
if (x>y && x>z)
{
c =x;
}
else
{
if (y>z)
{
c =y;
}
else
{
c =z;
}
}
cout << c << endl;
system("PAUSE");
return 0;
}
0 komentar:
Posting Komentar