View Single Post
Old Feb 17th, 2005, 2:41 PM   #9
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Here ya go... thnx for showing effort.

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>

int main (void)
{
char value;
    
printf("\nType number or name: ");
scanf("%d", &value);

if (isalpha(value))
{
    printf("\nLetter");
}
else 
{
    printf("\nNumber");
}

system("PAUSE");
return 0;
}
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote