I need a version of C++ where i can practice ( Older code ). The type of code was supported by C++ 2005 I think but it does not work with 2008 or 2010 version.
Example : #include <iostream.h>void main()
{
float salary;
float ltax;
cout << "\n Enter the salary";
cin >> salary;
if (salary > = 9000)
ltax = salary * 0.4;
if ((salary > = 7500) && (salary , 8999))
ltax = salary * 0.3;
cout <"\n Income tax = ", ltax;
}
Example : #include <iostream.h>void main()
{
float salary;
float ltax;
cout << "\n Enter the salary";
cin >> salary;
if (salary > = 9000)
ltax = salary * 0.4;
if ((salary > = 7500) && (salary , 8999))
ltax = salary * 0.3;
cout <"\n Income tax = ", ltax;
}