Advertisement
vim_fans

Untitled

Oct 2nd, 2021
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1.  
  2. int main()
  3. {
  4.  
  5.     char v[15];
  6.     int i = 0;
  7.     char c;
  8.     printf("Please enter 5 integers:\n");
  9.     while((c = getchar())!=EOF) {
  10.         v[i] = c;
  11.         int b = c - '0';
  12.         printf("%d\n", b);
  13.         ++i;
  14.  
  15.     }
  16.        
  17.     return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement