Untitled

 avatar
unknown
plain_text
4 years ago
306 B
6
Indexable
#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;
}
Editor is loading...