Showing posts with label Asked in Tech Mahindra. Show all posts
Showing posts with label Asked in Tech Mahindra. Show all posts
Saturday, 27 December 2014
Wednesday, 20 August 2014
C Program for the following Statement
Harish'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 gross salary.
Program:
#include<stdio.h>
#include<conio.h>
void main( )
{
int s,da,hra,gs;
clrscr( ); // Clear the screen contents
printf("\nEnter the Basic Salary:");
scanf("%d",&s);
da=(s*40)/100;
hra=(s*20)/100;
gs=s+da+hra;
printf("\nDearness Allowance %d",da);
printf("\nHouse rent allowance %d",hra);
printf("\nGross Salary is %d",gs);
}
Subscription
Popular Posts
-
Latest AMCAT practice papers: Download Now AMCAT Exam Pattern 2014 1) Quantitative Ability Section 2) Logical Ability Section ...
-
amazon is the one of the leading and big online shopping website. Even if it is leading or big online shopping website, it may have some...
-
1) If the word " BOOK " is coded as " CPPL " then how to code the following words? i) MASTER ii) REASON ...
-
Operators: The symbol is used to perform an operation is called an operator. --> An operator which expect only one operand is r...
-
Strings A string is a group of characters enclosed in a curly braces or ends with a null character --> The null character is p...
-
Pointers Pointer is a variable which stores address of another variable. --> The syntax for declaring a pointer is as follows...
-
Control Statements These statements are useful to decide which statements are executed and which statements are not to be executed ...
-
Functions Functions are introduced by the concept of write once and run any number of times. --> A Function is self contained bl...
-
Year of Graduation : 2015 Disciplines: BE/B-Tech/ME/M-Tech and MCA Percentage: 60% and above, No backlogs and breaks in studies. ...
-
Glenwood Systems is one of the healthcare software development company. It is established in 1988 Interview Process: 1st Ro...
Categories
- ACT
- ADP
- AMCAT
- Android
- Aptitude
- Array Programs
- Asked in AMCAT
- Asked in Global Edge
- Asked in Infosys
- Asked in Placements
- Asked in TCS
- Asked in Tech Mahindra
- Asked in Virtusa
- Basic I/O and Data Types
- C Language Tutorials
- C Programs
- Coding & Decoding
- Daily Questions
- Essential
- Fony Technologies
- Glenwood Systems
- Huawei
- Java Programs
- Java Script
- Mind Tree
- MiracleSoft
- Offcampus Placements
- Placement Papers
- Placements Questions
- PORTWARE
- Programs
- Search Programs
- Selection Process
- Smartphones
- Sort Algorithms
- String Manipulation Programs
- Structures
- Syntel
- TCS
- TCS Placement Papers
- Tech Tips
- Technical Questions
- Variables and Data Types
- Virtusa
- WhatsApp Features
- WhatsApp Tricks
- WIPRO
Powered by Blogger.

