Have a Read!

Hi Everyone.
The idea for this page is to provide new c users simple c tutorials to learn how to develop the logic and more importantly correct way to write syntax.
ENJOY !!!

Wednesday, January 26, 2011

C PROGRAM FOR TAKING CHARACTER INPUTs USING gerchar()

# include<stdio.h>
int main () {
char x,y,z;
printf("ENTER THE THREE CHARACTERs\n");
x=getchar();
y=getchar();
z=getchar();
printf("\nTHESE ARE THE CHARACTERS ENTERED\n");
printf("%c\n %c\n %c\n",x,y,z);
return 0;
}

No comments:

Post a Comment

Related Posts with Thumbnails