hi,
this is my first post in this fourm.
i am learning "C" just attended 4 classes.
there is an exercise in the book i have made these program but its not compiling.
whats wrong in these TWO program?
Ist on is for the Calculation of Salary ; and the IInd on is for the Conversion of TEMP. F to C
pl help.
First
#include<stdio.h>
#include<conio.h>
void main()
{
float basic,da,hra,salary;
printf("\n Enter the Basic Salary :");
scanf("%f",&basic);
da=basic*40/100;
hra=basic*20/100;
salary=basic+da+hra;
printf("\n The Basic Salary is :%f",basic);
prinrf("\n The DA is : %f",da);
prinrf("\n The HRA is : %f",hra);
prinrf("\n The Total Salary is : %f",salary);
getch();
}
Second
#include<stdio.h>
#include<conio.h>
void main()
{
float f,c;
printf("\n Enter the TEMP. in F :");
scanf("%f%f",&f,&c);
c=5/9.0*(f-32);
printf("\n The TEMP. in F : %f",f);
prinrf("\n the TEMP. in C : %f",c);
getch();
}