Tuesday 8 January 2013

Chapter 1 Problem No:H-a


#include<iostream.h>
#include<conio.h>
void main()
{
int a;
cin>>a; // input salary
float b,c;
b=(40.0/100.0)*a;  // 40% of dearness alowness
c=(20.0/100.0)*a;  // 20% of house rent
cout<<"This is the gross salry: "<<b<<endl; // I takes this as gross salary becasue 40% eqaul to b
}

No comments:

Post a Comment

Comments please: