Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int suma(char); //declaro prototipo de funcion
- int main()
- {
- char i;
- int out;
- printf("ingrese numero\n");
- scanf("%c",&i);
- out = esNumero(i);
- if(out == 1)
- printf("si");
- else
- printf("no");
- return 0;
- }
- int esNumero(c){ // HAORA declaro la funcion
- if(c>=48 && c<=57){
- return 1;
- }
- else return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement