HeLLo.
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.
PlS. Help
i M attaching the C file which i have problem with
Code:
/*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*/
#include <stdio.h>
#include <conio.h>
int main ()
{
float BS, GS, DA, HR;
clrscr ();
printf ("\nEnter your Basic Salary\n");
scanf ("%f",&BS);
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);
getch();
return 0;
}
Which compiler to use ???
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