Professional Documents
Culture Documents
Condition and Loop Problems
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
*
* *
* * *
* * * *
* * * * *
*
**
***
****
*****
*
* *
* * *
* * * *
* * * * *