2. Programs
How to find the sum of two numbers ?
How to find the average of given numbers ?
How to find the odd numbers 1 to 10?
How to find even numbers 1 to 10 and print them?
Check Whether number is even or odd from 1 to 10 ?
How to find the smallest divisor of given number at runtime ?
How to find the all divisors of given number at runtime?
How to find new numbers of given number in and 1’s place?
How to print and find the prime number between 1 to 15 ?
How to convert in centimeters to inches and feet ?
3. Q 1- How to find the sum of two numbers ?
Output-:
4. Q 2- How to find the average of given numbers?
Output-:
5. Q 3- How to find the odd numbers 1 to 10?
Output-:
6. Q 4-How to find even numbers 1to 10 and print them?
Output-:
7. Q 5- Check Whether number is even or odd from 1 to 10
?
Output-:
8. Q 6- How to find the smallest divisor of given number at
runtime ?
Output-:
9. Q 7-How to find the all divisors of given number at
runtime?
Output-:
10. Q 8- How to find new numbers of given number in and 1’s
place?
Output-:
11. Q 9- How to print and find the prime number between 1
to 15 ?
Output-:
12. Q 10-How to convert in centimeters to inches and feet ?
Output-: