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

O Level Practical Queestion Paper (MS-OFFICE, MSDOS, MS-EXCEL, ICT Resources)

MSDOS 1. Write command to display all files having extension ‘jpg’. 2. Write command to display all files of all types starting with letter ‘m’. 3. Write command to display all files having names up to ten characters with second last letter as ‘n’, e.g. intelligent. 4. Write a command to copy the file mars of type exe from the directory ‘space’ of drive U to another directory “universe” in drive S. 5. Write a command to delete the directory as well as the files of the directory ‘world’ on drive E. 6. Write command to display all file names on the disk in drive A and having an extension of no more than two characters.   7. Write command to copy all the files beginning with ‘m’ and whose file names has a ‘txt’ extension from drive A to the ‘\document’ directory on drive C. 8. Write set of commands to create a subdirectory of the root directory called ‘exercise’, and then move into it 9. Perform the following tasks using DOS commands in the DOS sh...

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

IICS College 15th August Celebration Day

IICS COLLEGE  15th August Celebration Day