Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ctype.h>
- #include <stdio.h>
- #include <iostream>
- #include <stdlib.h>
- using namespace std;
- int main()
- {
- char numero;
- for(;;){
- cout<<"inserisci un numero"<<endl;
- while( (numero = getchar()) != '\n' )
- if(isdigit (numero)){
- cout<<"e' un numero"<<endl;
- system("PAUSE");
- }else{
- cout<<"e un non numero"<<endl;
- system("pause");
- }
- }
- }
Add Comment
Please, Sign In to add comment