Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/u797631661/domains/codermantra.com/public_html/wp-content/plugins/quiz-maker/includes/class-quiz-maker-data.php on line 1199

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the quiz-maker domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u797631661/domains/codermantra.com/public_html/wp-includes/functions.php on line 6121
Questions – Page 14 – CoderMantra

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 »