#include <iostream>
using namespace std;
int main(){
	int a;

	cout << "masukan angka = ";
	cin >> a;

	if (a == 5){
		cout << "nilai ini adalah 5" << endl;
	} else if (a == 3){
		cout << "nilai ini adalah 3" << endl;
	} else if (a == 1){
		cout << "nilai ini adalah 1" << endl;
	} else {
		cout << "bukan 5,3, atau 1" << endl;
	}

	cout << "selesai" << endl;
}


Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: