write a c program to input five numbers and print


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

Request for Solution File

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

Expected delivery within 24 Hours