#include<stdio.h>
int main(void)
{
    float basic, da, hra, total;
    printf("Enter basic salary: ");
    scanf("%f ", &basic);
    da = 0.4 * basic;
    hra = 0.2 * basic;
    total = basic + da + hra;
    printf("Ramesh total salary is = %f", total);
    return 0;
}
The compiler shows no error and when I enter the salary there is no outputenter image description here
 
    