Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Ramesh’s basic salary is input through the keyboard. His
dearness allowance is 40% of basic salary, and house rent
allowance is 20% of basic salary. Write a program to calculate
his gross salary.



Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic s..

Answer / sara_weapon

#include<stdio.h>
#include<conio.h>

void main()
{
int sal_amt,gro_sal;

printf("Enter your salary = ");
scanf("%d",&sal_amt);

gro_sal=sal_amt+sal_amt*0.40+sal_amt*0.20;

printf("Gross salary = %d",gro_sal);
getch();
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Code Interview Questions

code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123

1 Answers   HCL,


write the function. if all the character in string B appear in string A, return true, otherwise return false.

11 Answers   Google,


main() { int *j; { int i=10; j=&i; } printf("%d",*j); }

9 Answers   HCL, Wipro,


why the range of an unsigned integer is double almost than the signed integer.

1 Answers  


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

0 Answers  


how to concatenate the two strings

1 Answers  


How we print the table of 3 using for loop in c programing?

7 Answers  


Derive expression for converting RGB color parameters to HSV values

1 Answers  


How do I write a program to print proper subset of given string . Eg :input: abc output:{},{a},{b},{c},{a,b},{a,c},{b,c}, {a,b,c}.I desperately need this program please mail me to saravana6m@gmail.com

11 Answers   Deshaw, Infosys,


abcdedcba abc cba ab ba a a

2 Answers  


find simple interest & compund interest

2 Answers  


/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }

4 Answers  


Categories