While Loop


 

  1. A program to display the first 10 odd numbers.

 

  1. A program to display all even numbers in the range of 100 to 200.

 

  1. A program to display the following series ( i.e. Fibnocci Series ) :
                        0
                        1 1
                        2 3 5
                        8 13 21 34
                        55................n
    where n is the limit of the series entered by the user
    .

 

  1. A program to input a number and check whether it is a palindrome or not.

 

 


Previous:
Elementary Programs


Next:
Do-While Loop