You are on page 1of 5

Q. Write a program to print the sum of two numbers.

Q. Write a program to swap two numbers without 3rd variable.

Q. Write a program to find the third angle of a triangle.

Q. Write a program to compute quotient and remainder.

Q. Write a program to compute the total and average of four numbers.

Q. Write a program to check whether a number is positive, negative or zero.

Q. Write a program to find Armstrong number

Q. Write a program to check whether a number is prime or not.

Q. Write a program to find the factorial of a number.

Q. Write a program to display the cube of the number upto given an integer.

Q. Write a program to display the n terms of odd natural number and their

sum.

Q. Write a program to display the n terms of even natural number and their

sum.

Q. Write a program to display the first n terms of Fibonacci series.

Q. Write a program to display the number in reverse order.

Q. Write a program to find the length of a string without using the library

function.
Q. Write a to display the pattern

*
**
***
****
*****

Q. Write a to display the pattern

1
12
123
1234
12345

Q. Write a program to check whether a number is palindrome or not.

Q. Write a program to find the largest element of a given array of integers.

Q. Write a program to find the second smallest elements in given array of

integers.

Q. Write a to display the pattern

*
**
***
****
*****
Q. Write a to display the pattern

*****
****
***
**
*
Q. Write a program to calculate x raised to the power n (xn).

Q. Write a program to check whether a character is vowel or not.

Q. Write a program to check whether the given character is an alphabet or

not.

Q. Write a program to check whether the number is odd or even.

Q. Write a program to find the sum of digits of a given number.

Q. Write a program to find the area of circle.

Q. Write a program to find largest among 3 numbers.

Q. Write a program to check whether the year is leap year or not.

Q. Write a program to check if a number is a strong number or not.

145 = 1! + 4! + 5! = 145

Q. Write a program to find prime numbers within a range.

Q. Write a program to find the sum of elements of an array.

Q. Write a program that reads 5 numbers and sums all odd values between

them.

Q. Write a program that reads an integer between 1 and 12 and prints the

month of the year in English

Q. Write a program that prints all even numbers between 1 and 50.
Q. Write a program that reads 5 numbers and counts the number of positive

numbers and negative numbers.

Q. Write a program that reads 5 numbers, counts the number of positive

numbers, and prints out the average of all positive values.

Q. Write a program to find and print the square of all the even values from 1

to a specified value.

Q. Write a program to check whether a given integer is positive even,

negative even, positive odd or negative odd.

Q. Write a program that calculates the volume of a sphere.

Q. Write a program to perform addition, subtraction, multiplication and

division of two numbers.

Q. Write a program to accept two integers and check whether they are equal

or not.

Q. Write a program to read the age of a candidate and determine whether

he is eligible to cast his/her own vote.

Q. Write a program to accept a coordinate point in an XY coordinate system

and determine in which quadrant the coordinate point lies.

Q. Write a program to calculate profit and loss on a transaction.


Q. Write a program to read any day number in integer and display the day

name in word format.

Q. Write a program in C to read any Month Number in integer and display

the number of days for this month.

Q. Write a program in C which is a Menu-Driven Program to perform a

simple calculation.

You might also like