Thursday, 20 October 2016

Class-XI Programs On While Loop



PRACTICAL QUESTIONS ON WHILE LOOP


     1.       Write a program to enter an integer number and print the series upto n numbers in a given format.
1              2              3              .               .               .               .               n

     2.       Write a program to print all characters from 0 to 255.
     3.       Write a program to enter a decimal number and convert it into binary number.
     4.       Write a program to enter a binary number and convert it into decimal number.
    5.       Write a program to enter a positive integer number and count the total number of digits and sum of digits.
    6.       Write a program to find the factorial of a number.
    7.       Write a program to display the Fibonacci series.
    8.       Write a program to display the hailstone series.
    9.       Write a program to display the Lucas series.
    10.   Write a program to enter an integer number and check if it is a palindrome or not.
    11.   Write a program to enter an integer number and check if it is Armstrong number or not.
    12.   Write a program to enter the lower limit and upper limit of a number and calculate the sum of all numbers in the given limit.
    13.   Write a program to enter a positive integer number and print the table.
    14.   Write a program to enter a number and generates its cube.
    15.   Write a program to count the total even and odd numbers in a given range.
    16.   Write a program to enter a number and check if it is prime number or not.


No comments:

Post a Comment