Write a c program to input numbes in table format, C/C++ Programming

Assignment Help:

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);

  }


Related Discussions:- Write a c program to input numbes in table format

Explain reusability, Reusability  Reusability means reusing code writte...

Reusability  Reusability means reusing code written earlier, may be from some earlier project or from the library. Reusing old code not only saves development time, but also sa

#title prime number or not, to find prime numbers upto any number say "n" e...

to find prime numbers upto any number say "n" entered by user

Example program of c programming, Write a c program to determine interchang...

Write a c program to determine interchanged values between two variables?[Hint - if loop] What will be the output of the program? How many times this loop will execute? Wr

Hw8, Asks the user for an integer. if the number is less than 21, ask them ...

Asks the user for an integer. if the number is less than 21, ask them for a number again; repeat this until you get a number bigger than 20. 20 is not an acceptable number. Once yo

Luminous jewels, Problem : Luminous Jewels - Polishing Necklace Byteland c...

Problem : Luminous Jewels - Polishing Necklace Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of v

#Luminous Jewels, #Byteland county is very famous for luminous jewels. Lumi...

#Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Ne

Luminous Jewels - The Polishing Game, Byteland county is very famous for lu...

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Binary search tree is constructed by repeatedly, Assume that a Binary Searc...

Assume that a Binary Search Tree is constructed by repeatedly inserting exact values in to the tree. Argue that the number of nodes examined in searching for a value in the tree is

Find area, #question.to determine the area of a triangle,rectangle and tra...

#question.to determine the area of a triangle,rectangle and trapezium

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd