Back To C Basic Index
//program to input two decimal point numbers and display difference between them #include
#include
void main() { float a,b; float difference; clrscr(); printf("enter value for a "); scanf("%f",&a); printf("enter value for b "); scanf("%f",&b); difference=a-b; printf("difference between a and b is %f",difference); getch(); }