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
Practice Questions – Page 17 – CoderMantra

A program in C++ that reads an integer n and prints a twin prime that has the maximum size among twin primes less than or equal to n.

In the above C++ program to prints a twin prime that has the maximum size among twin primes less than or equal to the given number, we need to understand that A twin prime is a prime number that is either 2 less or 2 more than another prime number—for example, either member of the…

Read More »

A program in python to check if a triangle is an equilateral or an isosceles or a scalene triangle.

In the above Python program to check if a triangle is an equilateral or an isosceles or a scalene triangle, we will use conditional statements which will give us the desired results. For Equilateral triangle all sides should be equal, For Isosceles triangle any two sides should be equal and if no sides are equal…

Read More »

A program in python to convert all the characters into uppercase and lowercase and eliminate duplicate letters from a given sequence.

In the above Python program to convert all the characters into uppercase and lowercase and eliminate duplicate letters from a given sequence, we have used built-in functions upper() and lower() and then to list all the characters map() function is used. Sample Output: Original Characters are: {‘G’, ‘u’, ‘E’, ‘B’, ‘T’, ‘s’, ‘e’, ‘a’} After…

Read More »