- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Environmental Science
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to calculate gross salary of a person using C Program
#include <stdio.h>
int main() {
int gross_salary, basic, da, ta;
printf("Enter basic salary : ");
scanf("%d", &basic);
da = (10 * basic) / 100;
ta = (12 * basic) / 100;
gross_salary = basic + da + ta;
printf("\nGross salary : %d", gross_salary);
return (0);
}
Output :
Enter basic Salary : 1000
Gross Salart : 1220
- Related Questions & Answers
- Write C Program to Merge Two arrays in C Programming
- How to calculate gross salary of a person using C Program
- How to find sum of two numbers using C Language
- How to Calculate Area of Equilatral Triangle using C Language
- Recursive program to linearly search an element in a given array using C
- How to print hello world using C Language
- How to find area and circumference of circle using C Programming
- What is SQL ?
- Write C Program to Calculate Addition of All Elements in Array
- What are Python function attributes?
- How to Calculate Area of Circle using C Programming
- Write C Program to Find Smallest Element in Array in C Programming
- How to calculate sum of 5 subjects and find percentage Using C Program
- Find Second largest element in an array using C Programming
- How To Clean Up Unnecessary Code From WordPress Header Without Plugins
- Write a C program using pointers to read in an array of integers and print its elements in reverse order.
Advertisements
ads