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

Concept of Big data

Best Laptop for students Concept of BIG DATA The concept of big data arrived in executive suites via IT and engineering departments, and those technical roots have led to some disagreement of what the term means. At its core, big data refers to high volumes of information from multiple sources being fed into data stores on a time-sensitive basis. The shorthand: lots of data coming rapidly and from many places. Big data is an important foundation of quality  business intelligence , providing enough information to detect meaningful trends. Big Data Everywhere!  • Lots of data is being collected and warehoused • Web data, e-commerce • purchases at department/ grocery stores • Bank/Credit Card transactions • Social Network Type of Data • Relational Data (Tables/Transaction/Legacy Data) • Text Data (Web) • Semi-structured Data (XML) • Graph Data • Social Network, Semantic Web (RDF), … • Streaming Data • You can only scan the data o...

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...