By-
Nitin Kumar Kashyap
Nakshkashyap12@gmail.com
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 ?
Q 1- How to find the sum of two numbers ?
Output-:
Q 2- How to find the average of given numbers?
Output-:
Q 3- How to find the odd numbers 1 to 10?
Output-:
Q 4-How to find even numbers 1to 10 and print them?
Output-:
Q 5- Check Whether number is even or odd from 1 to 10
?
Output-:
Q 6- How to find the smallest divisor of given number at
runtime ?
Output-:
Q 7-How to find the all divisors of given number at
runtime?
Output-:
Q 8- How to find new numbers of given number in and 1’s
place?
Output-:
Q 9- How to print and find the prime number between 1
to 15 ?
Output-:
Q 10-How to convert in centimeters to inches and feet ?
Output-:

Basic programs in python

  • 1.
  • 2.
    Programs  How tofind 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- Howto find the sum of two numbers ? Output-:
  • 4.
    Q 2- Howto find the average of given numbers? Output-:
  • 5.
    Q 3- Howto find the odd numbers 1 to 10? Output-:
  • 6.
    Q 4-How tofind even numbers 1to 10 and print them? Output-:
  • 7.
    Q 5- CheckWhether number is even or odd from 1 to 10 ? Output-:
  • 8.
    Q 6- Howto find the smallest divisor of given number at runtime ? Output-:
  • 9.
    Q 7-How tofind the all divisors of given number at runtime? Output-:
  • 10.
    Q 8- Howto find new numbers of given number in and 1’s place? Output-:
  • 11.
    Q 9- Howto print and find the prime number between 1 to 15 ? Output-:
  • 12.
    Q 10-How toconvert in centimeters to inches and feet ? Output-: