Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
306 B
4
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
int x;
cout<<"Masukan Angka 1 - 3 : ";cin>>x;
if(x == 1)
{
cout<<"CETAK ANGKA 1";
}
else if(x == 2)
{
cout<<"CETAK ANGKA 2";
}
else if(x == 3)
{
cout<<"CETAK ANGKA 3";
}
else
{
cout<<"TIDAK CETAK ANGKA";
}
cin.get();
return 0;
}