Practical Questions – Code in C

Q 1) WAP to find the sum of natural numbers from 1 to n.

Q 2) WAP to find the sum of all even integers between 2 and n.

Q 3) WAP to print integers from 1 to 50, with five integers per line.

Q 4) WAP to generate and print the numbers between 100 and 200 that are divisible by 3 but not divisible by 4.

Q 5) WAP to print Armstrong Numbers from 100 to 999.

Q 6) WAP to take the input and output of a 2D array.

Q 7) WAP to print prime nos between 100 to 1000.

Q 8) WAP which will print the factorial of all numbers from 1 to 15.

Q 9) WAP to find sum of numbers between 1 and n.

Using Loop

Q 10)  WAP to print reverse of a given no taken from user.

Q 11)  WAP in C to check the number is palindrome or not.

Q 12)  WAP to check the no is Armstrong or not.

Q 13)  WAP to print Fibobacci series upto nth term and explain.

Q 14) WAP to check the number is prime or not.

Q 15) WAP to check whether a given year is leap year or not.

Q 16) WAP to print following pattern.

Q 17) WAP to print following pattern.

Q 18) WAP to print following pattern.

Q 19) WAP to print following pattern.

Q 20) WAP to print following pattern.

Q 21) WAP to enter any character and check whether the given character is vowel or consonant using switch statement.

Q 22) WAP to evaluate the series.

Q 23) WAP to Enter any  2 no and calculate arithmetic calculation using switch statement.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

'
error: Content is protected !!