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

Define internal static storage class - computer programming, Define Interna...

Define Internal static storage class - computer programming? The Internal static variables are those that declared inside a function. The scope of the internal static variables

Make a list of functions that are standard in cpp, Make a list of functions...

Make a list of functions that are standard in C++. You must include each of the following for each function: Name of function Its parameters Data type it returns

Explain function overloading, F u nction overloading: Functions can b...

F u nction overloading: Functions can be defined with same name.  Depending upon the type of argument passed the function will perform.  This is known function overloading

C program for sorting of long word with different string, C Program for SOR...

C Program for SORTING OF LONG WORD WITH DIFFERENT STRING #include stdio.h> #include conio.h> #include string.h>   void main() {           char n[50],c[25][25]

Algorithm, Algorithm for railway ticket booking process

Algorithm for railway ticket booking process

Define a function in c program, Define a function in c program: int f1...

Define a function in c program: int f1() { static int x=10; return x; } int f2() { int y=5; return y; } extern int z; void f()     {

Define classes and objects, Classes and Objects A class is a vehicle to...

Classes and Objects A class is a vehicle to execute the OOP features in the C++ language. Once a class is declared, an object of that type can be explained. An object is said t

Age guessing game, Write a program that predicts users’ age (0-128 years ol...

Write a program that predicts users’ age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an initial gues

COMPUTER, THEORY OF A COMPUTER PROGRAMMING

THEORY OF A COMPUTER PROGRAMMING

Operators, write a program to accept ten numbers and display the total

write a program to accept ten numbers and display the total

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