- 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
- articles and Answers
- Effective Resume Writing
- HR Interview articles
- 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
- How To Create Minion Eyes That Follows Mouse Cursor
- How to Find Area of Scalene Triangle using C
- Build A Currency Converter App in HTML CSS & JavaScript
- How To Create AdBlock Detector using HTML & JavaScript
- How to convert temperature from degree centigrade to Fahrenheit using C
- C Program To Print Your Own Name
- Write C Program For Finding The Length Of Loop In Linked List
- How To Create New Year Countdown using HTML & Javascript
- How to Check Whether Number is Perfect Or Not using C
- Explain Lambda Function in Python details with Code
- How To Clean Up Unnecessary Code From WordPress Header Without Plugins
- Animated Login Form Using Only HTML CSS SignIn Form Design
- Write C program to Check Whether a Number is Positive or Negative
- how to create an English Dictionary App using HTML & Javascript
- How To Reduce the Array to 0 by decreasing elements by 1 or replacing at most K elements by 0
- RGB To HEX / Hex To RGB Converter Using Javascript
Advertisements
ads