write a c program to input 16 numbers and print


Write a C program to input 16 numbers and print them out in a table format of 4 wide by 4 deep. E.g.

  4    5    5    7
  8    9    10    11
  12    13    14    15
  16    17    18    19

  #include stdio.h
  void main()
  {
  char promt;
   
  int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;
  printf("Please enter in 16 integers \n\r");
  scanf("%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f,&g);
  scanf("%d%d%d%d%d%d%d%d%d",&h,&i,&j,&k,&l,&m,&n,&o,&p);
  printf("%d\t%d\t%d\t%d\n\r",a,b,c,d);
  printf("%d\t%d\t%d\t%d\n\r",e,f,g,h);
  printf("%d\t%d\t%d\t%d\n\r",i,j,k,l);
  printf("%d\t%d\t%d\t%d\n\r",m,n,o,p); 
  printf("Press any key to exit \n\r");
  scanf("\n%c",&prompt);

  }

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: write a c program to input 16 numbers and print
Reference No:- TGS0265308

Expected delivery within 24 Hours