#include "stdio.h"
char is_digit(int x)
{
if(x>='0' && x<='9')
return (1);
else
return (0);
}
int main (void)
{
int a;
printf("Enter a number:\n");
scanf("%c", &a);
printf("%d\n", is_digit(a));
system("pause");
return 0;
}
c, c++ , java, oracle, database design, c tutorial, c++ tutorial, java tutorial, oracle tutorial, programming, make program easy, c programming, c advance program, java advance program
#include "stdio.h"
char is_digit(int x)
{
if(x>='0' && x<='9')
return (1);
else
return (0);
}
int main (void)
{
int a;
printf("Enter a number:\n");
scanf("%c", &a);
printf("%d\n", is_digit(a));
system("pause");
return 0;
}
All rights reserved||Using Deluxe Template By Klodian
0 comments:
Post a Comment