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

Learn Programming in UNIX

Q: - Write a program to input two numbers and add them?             gedit add.sh             clear             echo “enter two numbers:”             read a             read b             sum=`expr$a+$b`             echo $sum Syntax for if-else:- (1)          if test condition             then                 ---------                 --...

Things you know before buying Laptop

Things you should know before purchasing Laptop 1. Brand of Company Like DELL (inspiron Only), HP, ACER 2. Required RAM capacity Like 4 GB aprox. 3. Requirement of Hard Disk like 500 GB or 1 TB. 4. Processor like Intel Core i3 or Dual Core or AMD processor 5. Multimedia keyboard 6. Optical Mouse 7. ATI graphics Card Note:- If you think to buy a laptop you can select the laptop without operating system or open source operating system because if you buy windows o/s for laptop then it increased price aproxx 3000 if you select DOS laptop then its reduced the windows cost. Click here for example --> Best Laptop for students

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