Write a program using if else statement to validate the users input to be in the range 1-10. October 29, 2015 Get link Facebook X Pinterest Email Other Apps Write a program using if else statement to validate the users input to be in the range 1-10. # include <iostream> using namespace std; int main(){ unsigned int a; cout << "Enter Number" << endl; cin >> a; if (a<=10&&a!=0){ cout << "Welcome" << endl; } else { cout << "Enter The Value Between 1-10 "<< endl; } system("pause"); return 0; } Comments
Comments
Post a Comment