i M new & have written just a simple programm, but it is giving error.
it compiles perfectly without errors but when i run it, it doesnt give the value as desired.
i M attaching the C file which i have problem with
Which compiler to use ???
/*Ramesh's Basic Salary is input through Keyboard.
His dearness allowance is 40% of basic salary, &
house rent is 20% of his basic salary.
WAP to calculate his Gross Salary*/
int main ()
float BS, GS, DA, HR;
printf ("\nEnter your Basic Salary\n");
DA = 40/100*BS;
HR = 20/100*BS;
printf ("\nYour Dearness Allowence is %f \n", DA);
printf ("\nYour House Rent Allowance is %f \n", HR);
GS = BS+HR+DA;
printf ("\nYour GROSS SALARY is %f\n", GS);
i M using Turbo C++, but having gr8 troubles with it.
'coz i m using Windows 7 & in that dos doesnt support fullscreen.
So its a big problem.
PlS. tell me a good compiler