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

Specifying and working rules of a class, Specifying a Class: As discuss...

Specifying a Class: As discussed a class is defined to develop an algorithm and bind it together in a core shell. A class is an abstract data type (ADT).  The binding of dat

Should my class declare a friend function or member function, A: Use a memb...

A: Use a member while you can and a friend when you need to. Sometimes friends are better syntactically (e.g., in class Fred, friend functions let the Fred parameter to be secon

Write a program to illustrate array with strings, Write a Program to illust...

Write a Program to illustrate Array with Strings? main() { static char name[]="devdas"; int i; i=0; while(name[i]!='\0') { printf("%c",name[i]); i=i+1; } } In the

Program for number game, - Create a program that uses at least two function...

- Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulati

A palindrome is a string that reads the same from both the e, submitting so...

submitting solutions in C language should not use functions from / as these files do not exist in gcc

What should one catch?, A: By keeping along with the C++ tradition of "ther...

A: By keeping along with the C++ tradition of "there's more than one method to do that" (translation: "give programmers options & tradeoffs so they can choose what's best for them

Source code, processing two jobs through 2 machine

processing two jobs through 2 machine

Function with two arguments, Write out pseudocode for a function called "an...

Write out pseudocode for a function called "and" that takes two arguments, both booleans, and returns the logical and of the inputs. DO NOT use the logical and operator: instead, w

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