include iostream include conio using namespace std int main int cout e

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int a;
cout << "enter your number ";
while(!(cin >> a))
{
cin.clear();
while(cin.get() != '\n');
system("cls");
cout << "enter your number ";
}
cout << "your number is: " << a;
_getch();
return 0;
}