Advertisement
ebx

Aleksa

ebx
Jan 3rd, 2012
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char** argv) {
  4.     char a[5];
  5.     int i;
  6.     for (i=0; i<5; i++) {
  7.         printf("a[%d]=",i);
  8.         fflush(stdin);
  9.         scanf("%c",&a[i]);
  10.     }
  11.     for(i=0; i<5; i++)
  12.         printf("a[%d]=%c\n",i,a[i]);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement