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

Assignment Help:

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


Related Discussions:- Write a c program to input three real numbers

File Input and Output, Given a bool variable isReadable write some statem...

Given a bool variable isReadable write some statements that assign true to isReadable if the file "topsecret" exists and can be read by the program and assigns false to isR

STM32F103RET6, traffic light t junction I have 21 LEDs will 6 in each side...

traffic light t junction I have 21 LEDs will 6 in each side 3 for the cars the other 3 will be for the people across the street this will be for each side and the last 3 for show

Coding, I want MODI method''s coding in c++ using all concepts of c++..plea...

I want MODI method''s coding in c++ using all concepts of c++..please help me its my project work...

Area under curve, Write a program to find the area under the curve y = f(x)...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.

C, find area uder the curve y=f(x) between x=a and x=b

find area uder the curve y=f(x) between x=a and x=b

Verification class, I need help to understand and do this assignment ******...

I need help to understand and do this assignment ********************************************************* You are to insert the missing code in the C program given for combinatio

Define the data file in c programming, Define the Data File in C Programmin...

Define the Data File in C Programming? Many applications needs that information can written to or read from an auxiliary memory device. Such information is stock up on the memo

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