Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, char** argv) {
- char a[5];
- int i;
- for (i=0; i<5; i++) {
- printf("a[%d]=",i);
- fflush(stdin);
- scanf("%c",&a[i]);
- }
- for(i=0; i<5; i++)
- printf("a[%d]=%c\n",i,a[i]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement