Skip to main content

C Language Question Practice



C Language Question Practice

Note: Do all the program using for, while and dowhile loop.

Que-1 Write a program to input a number and check number is perfect or not.
Que-2 Write a program to input a number and check number is Armstrong number or not.
Que-3 Write a program to input a number and check number is prime number or not.
Que-4 Write a program to input a number and check number is special number or not.
Que-5 Write a program to input a number and check number is palindrome or not.
Que-6 Write a program to input a number print it reverse order.
Que-7 Write a program to input a number and print it word format.
Que-8 Write a program to input a number and check it is Automarphic or not.
Que-9 Write a program to input a number and check number is magic number or not.
Que-10 Write a program to input a number print its factorial.
Que-12 Write a program to print Fibonacci series upto n term.
Que-13  Write a program to print  tribonacci series upto n term
Que-14 Write a program to input a number and check number is perfect or not.
Que-15 Write a program to print following pattern.
a)      1
22
333
4444
55555

b)      55555
4444
333
22
1

c)                           1
                   22
                 333
              4444
            55555

        d)                       1
                              2  3
                           4    5  6
                        7   8    9   10

Comments

Popular posts from this blog

Multiple Inheritance

Multiple Inheritance In multiple inheritance a class can access the property of more than one class. This inheritance is use for multiple accessing of properties. In multiple inheritance ambiguty is  occured when same name function is declare in both class and the object is confuse with function is called.  syntax − class derived-class: access baseA, access baseB.... Where access is one of public, protected, or private and would be given for every base class and they will be separated by comma as shown above. Let us try the following  example − #include <iostream.h> #include <conio.h>  // Base Class class Shape  {    public:       void getwidth(int w) {          width = w;       }       void getheight(int h) {          height = h;       }           prot...

CODD RULES of RDBMS

Codd’s rules for RDBMS (i)                 The information rule. (ii)              Guaranteed access of   data (iii)            Systematic treatment of null value. (iv)            On line DB support. (v)              Comprehensive sup-language rule. (vi)            The view update rule. (vii)         Insert update rule. (viii)       Physical data independence. (ix)            Logical data independence. (x)              Integrity rule (xi)  ...