- inilah program c++ nya :
#include <iostream>
#include <string>
using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
int X;
int Y;
int Z;
int maks;
raptor_prompt_variable_zzyz ="masukkan X : ";
cout << raptor_prompt_variable_zzyz << endl;
cin >> X;
raptor_prompt_variable_zzyz ="masukkan Y :";
cout << raptor_prompt_variable_zzyz << endl;
cin >> Y;
raptor_prompt_variable_zzyz ="masukkan Z :";
cout << raptor_prompt_variable_zzyz << endl;
cin >> Z;
maks =X;
if (Y>maks)
{
if (Y>Z)
{
cout << "bil maks : "<< Y << endl; }
else
{
cout << "bil maks :"<< Z << endl; }
}
else
{
if (Z>maks)
{
cout << "bil maks :"<< Z << endl; }
else
{
cout << "bil maks :"<<X << endl; }
}
system ("pause");
return 0;
}
Tidak ada komentar:
Posting Komentar