View Code of Problem 77

#include <stdio.h>
int main(){
  int a[4];
  char c;
  int i;
  for(i=0;i<4;i++){
    scanf("%c",&c);
    a[i]=c-'0';
  }
  for(i=0;i<4;i++){
    if(i<3)
    printf("%d ",a[i]);
    else
      printf("%d",a[i]);
  }
  
  
  
  return 0;
}

Double click to view unformatted code.


Back to problem 77