viral1991
International Cricketer
#include <iostream>
using namespace std
[
int x;
cout << "Enter number between 1 to 7 : ;
cin >> x;
if (x<1)
cout << "Try Again";
else if (x>7)
cout << "Try Again";
else
cout << "The number you entered is " >> x >> "\n";
return 0;
]
I hope its right!

Last edited: