write a c program to input three real numbers


 Write a C program to input three real numbers and  print them out as follows :

The first variable is ....... and the second one is ......

The last variable is ..........

The variable format specification is

Variable 1 10 spaces of 5 decimal

Variable 2   none

Variable 3  signed  10 spaces 5 decimal
   
  #include stdio.h
  main()
  {
  char prompt;

  float a,b,c;

  printf("Please enter in three real numbers \n\r");

  scanf("%f %f %f",&a,&b,&c);

printf("The first variable is%11.5f  and the second one is %f \n\r",a,b);

printf("The last variable is %+12.5f \n\r",c);

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 three real numbers
Reference No:- TGS0414841

Expected delivery within 24 Hours