Write a c program to input five numbers, C/C++ Programming

Assignment Help:

Write a C program to input five numbers and print them out on a new line e.g 5, 10, 15, 20, 25 displayed as
  5
  10
  15
  20
  25

#include stdio.h
  void main()
  {  
  char prompt;
  int a,b,c,d,e;
  /* Ask for the integers to be entered */
  printf("Please enter in 5 integers seperated by a space \n\r");
  scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
  printf("%d \n\r",a);
  printf("%d \n\r",b);
  printf("%d \n\r",c);
  printf("%d \n\r",d);
  printf("%d \n\r",e);  
  printf("Press any key to exit \n\r");
  scanf("\n%c",&prompt);  
  }


Related Discussions:- Write a c program to input five numbers

How, how to program?

how to program?

Artificial block, What if I cannot wrap the local in an artificial block? n...

What if I cannot wrap the local in an artificial block? need help on Artificial Block in c++.

What does this mean that "friendship isn''t transitive, What does this mean...

What does this mean that "friendship isn't transitive, inherited or reciprocal"? A: As I grant you friendship access to me doesn't grant your kids automatically access to me, do

C program for count the no which you want , # include stdio.h> # include...

# include stdio.h> # include string.h> # include conio.h> void main() {           int i=0,j=0,b=0,count=0;           int a[100];           for(i=0;i

C++, how do i write a c++ program that will input a number and output its f...

how do i write a c++ program that will input a number and output its factorial using the while loop

Develop a telephone billing system, Project Description: My project is a...

Project Description: My project is about telephone billing system. This project was my project in my college life. The project is quite easy, i needed C++ programming language..

Explain the continue statement, The continue statement The continue sta...

The continue statement The continue statement causes the next iteration of the enclosing loop to start. When this is encountered in the loop , the rest of the statements in the

Program create a user defined data structure - c++ program, Create a user-d...

Create a user-defined data structure (struct) called Node that represents a node within a linked list where the "data" stored in each node is a pointer to a Car object.    a) Wr

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