Getting Started
13 problems to practice.
Print Z
1. You are required to print a 'z' of size 5 using '*'.
Grading System
1. You are given as input marks of a student. 2. Display an appropriate message based on the follow...
Is A Number Prime
1. You've to check whether a given number is prime or not. 2. Take a number "t" as input representi...
Print All Primes Till N
1. You've to print all prime numbers between a range. 2. Take as input "low", the lower limit of r...
Print Fibonacci Numbers Till N
1. You've to print first n fibonacci numbers. 2. Take as input "n", the count of fibonacci numbers...
Count Digits In A Number
1. You've to count the number of digits in a number. 2. Take as input "n", the number for which the...
Digits Of A Number
1. You've to display the digits of a number. 2. Take as input "n", the number for which digits have...
Reverse A Number
1. You've to display the digits of a number in reverse. 2. Take as input "n", the number for which...
Rotate A Number
1. You are given two numbers n and k. You are required to rotate n, k times to the right. If k is po...
Inverse Of A Number
1. You are given a number following certain constraints. 2. The key constraint is if the number is...
Gcd And Lcm
1. You are required to print the Greatest Common Divisor (GCD) of two numbers. 2. You are also requ...
The Curious Case Of Benjamin Bulbs
1. You are given n number of bulbs. They are all switched off. A weird fluctuation in voltage hits t...
Pythagorean Triplet
1. You are required to check if a given set of numbers is a valid pythagorean triplet. 2. Take as i...