Initial Basics – Algebra – Problem #30

IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive

Difficulty: Easy

Problem Statement

The office in which you are working has decided to contribute a part of your salary towards a special fund contribution. Your contribution is calculated as the addition of 10% of your basic pay and 5% of your Dearness Allowance (DA). Write a program to take input two integers as your basic pay and as your DA and display the fund contribution. Example: Input: Basic Pay: 1000 DA : 200 Output: Fund contribution: 110 (10% of 1000 + 5% of 200)

Back to Lab Problems
Initial Basics/Algebra/Problem #30

Lab Problem Statement

Specifications & Problem DetailsIIT Kharagpur PDS Archive
Loading question...

Interactive C Compiler · Problem #30

WASM In-Browser

Runs directly on your machine · Zero remote server dependency

Compiler downloads on first Run (large, saved in your browser after that)
main.cCtrl + Enter to run
1
2
3
4
5
6
7
Input (stdin)given to scanf / cin
Output

Output appears here. Press Run to compile and execute.