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

programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h

1 Answers  


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


Printf can be implemented by using __________ list.

3 Answers  


Write a program to print a square of size 5 by using the character S.

6 Answers   Microsoft,


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

0 Answers   TCS,


Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }

1 Answers  


main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }

2 Answers  


can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  


Print an integer using only putchar. Try doing it without using extra storage.

2 Answers  


Program to Delete an element from a doubly linked list.

4 Answers   College School Exams Tests, Infosys,


Write a program to receive an integer and find its octal equivalent?

7 Answers  


How to access command-line arguments?

4 Answers  


Categories