Loop in C

  1. Write a program to print ASCII value of a given character like A =65.
  2. Write a program to print table of a given number. 
  3. Write a program to print the sum of even position & product of odd position digit of any inputted Number.
  4. Accept a Number from user and find reverse of it .
  5. Accept a Number from user and check whether it is Prime or Not.
  6. Accept a Number form user and check whether it is Palindrome or Not  
  7. Accept a Number from user and check whether it is Armstrong or Not .
  8. Write a program to print all odd numbers from 1 to N terms.
  9. Write a program to print all even number from 1 to N terms .
  10. Write a program  to find the factorial of given Number.
  11. Write a program to print the sum of digit of any inputted Number .
  12. Write a program to print the product of digit of any inputted Number.
  13. Write a program to calculate total number of digit in given number .
  14. Accept a Number from user and check whether it is perfect no. or Not.
  15. Accept a Number from user and  print its equivalent Binary Number.
  16. Accept a Number from user and Base from user and print its equivalent Base Number.
  17. Print the table from n1 to n2(n1 is starting point and n2 ending point) .
  18. Write a program to print all factors of given number.
  19. Write a program to print all prime Number from 1 to 100 .
  20. Write a program to print all Armstrong Number form 1 to 100.
  21. Write a program to print all perfect number from 1 to 100 .
  22. Write a program to accept a digit number and print it in words. Like 124 to one two four.
  23. Write a program to print the following Triangle up to n terms .
  24. Print V -Shape in C pyramid like this using star.
                  *                 *
                  **             **
                  ***         ***
                  ****    ****
                  **********
  25.  Print V Shape in C like this .
                   *                 *
                    *             *
                      *         *
                        *    *
                          *
     
  26. Print Triangle Shape in C like this..                *********
  27. Print Reverse Triangle shape in C like this..                                 *
  28. Print Square Shape in C like this..
  29. Print Diamond Shape in C like this..
                               *
                            ***
                           ****
                          *****
                        *******
                         *****
                          ****
                           ***
                             *
  30. Print Pascal's triangle
               
               1
             1   1
           1   2   1
         1   3   3    1
       1  4    6   4   1
     1  5   10   10  5   1 
  31. Inverted full pyramid using *

    * * * * * * * * *
      * * * * * * *
        * * * * *
          * * *
            *
  32. Program to print pyramid using numbers

            1
          2 3 2
        3 4 5 4 3
      4 5 6 7 6 5 4
    5 6 7 8 9 8 7 6 5
  33. Program to print full pyramid using *

            *
          * * *
        * * * * *
      * * * * * * *
    * * * * * * * * *
     
  34. Inverted half pyramid using numbers

    1 2 3 4 5
    1 2 3 4 
    1 2 3
    1 2
    1
  35. Program to print half pyramid using alphabets

    A
    B B
    C C C
    D D D D
    E E E E E
     
  36. 1

  37.  
                              *
                            ***
                           ****
                          *****
                        *******
                         *****
                          ****
                           ***
                             *
      
                 

      

Previous Post
Next Post

Related Posts: