You are on page 1of 2

Condition and loop Problems

Condition problems:
1. Find largest number in two numbers.
2. Find largest number in 3 numbers.
3. Find Grade if 35 is pass, above 50 is good, 75 is very good,
above 90 is excellent.
4. Swaping of two numbers.
Loops:
1. Find factorial of a given number.
2. Find NCR of given n value and r value.
3. Find Fibonacci of a given numbers.
4. Check whether given number is palindrome or not.
5. Check whether given number is perfect number or not.
6. Check whether given number is Strong number or not.
7. Convert decimal to Binary number.
8. Patterns
 *
* *
* * *
* * * *
* * * * *

*
**
***
****
*****
 *
* *
* * *
* * * *
* * * * *

9. Find largest number in an array.


10. Find Minimum number in an array.

Solve these problems


1. https://www.codechef.com/problems/GDTURN
2.https://www.codechef.com/problems/FAVOURITENUM
3. https://www.codechef.com/problems/TAXSAVING
4.https://www.codechef.com/problems/FCTRL2?
tab=statement
5. https://www.codechef.com/problems/ONEMORE

You might also like