Program to compute the sum of the two given integers. Return 18 if one of the integer values given is in the range 10..20 inclusive.

Here, we have a basic program example to calculate the sum of two numbers and return 18 if one of the number is within the range of 10-20 using different languages. This program is created in c language, c++, Java, and Python. Program to calculate the sum and check if the number is within the…

Read More »

A program to read an amount (integer value) and break the amount into the smallest possible number of bank notes.

Here, we have a basic program example to break the user input amount into smallest possible number of bank notes using different languages. This program is created in c language, c++, Java, and Python. Note: The possible banknotes are 100, 50, 20, 10, 5, 2 and 1. Program to break the amount into smallest bank…

Read More »

A program that accepts an employee’s ID, total worked hours in a month and the amount he received per hour. Print the ID and salary (with two decimal places) of the employee for a particular month.

Here, we have a basic program example to print the id and monthly salary of the employee using different languages. This program is created in c language, c++, Java, and Python. Program to print id and monthly salary of the employee in C language Program to print id and monthly salary of the employee in…

Read More »