home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ double a; clrscr(); printf("Enter value of a: "); scanf("%lf",&a);/* %.2f is used to print two decimal places. */ printf("\n value of a = %.2lf",a); getch(); }
Program Output
Enter value of a: 5421.4231 value of a = 5421.42