DevJourney · code I wrote while learning

README.md

955 B

Single File Programming Question

Problem Statement

Write a program to calculate the updated salary of an employee after a salary hike meeting. The current salary is computed by totaling the previous salary and the hike percentage of the previous salary.

Function Name: void currentSalary(int **rate ,int **salary)

Input format :

The first line of input consists of an integer representing the hike percentage.

The second line of input consists of an integer representing the old salary.

Output format :

The output prints the new salary after the hike, formatted to two decimal places.

Refer to the sample output for formatting specifications.

Code constraints :

The given test cases fall under the following constraints:

1 ≤ hike percentage ≤ 100

The salary must be a positive integer.

Sample test cases :

Input 1 :

4 12000

Output 1 :

12480.00

Input 2 :

100 30000

Output 2 :

60000.00