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 MULTIPLE CHARACHTER INPUTS

#include <stdio.h>
int main () {
char x,y,z;
printf("PLEASE ENTER 3 CHARACTERS");
scanf("%c%c%c",&x,&y,&z);
printf("THE CHARACTERs ENTERED ARE AS FOLLOW:\n")
printf("%c\n  %c\n  %c\n  ",x,y,z);
return 0;
}

No comments:

Post a Comment

Related Posts with Thumbnails