Professional Documents
Culture Documents
15. Write a program in C to read three integer values from the keyboard and displays the output stating that they are
the sides of a right-angled triangle.
16. Write a program in C to check whether three points are collinear or not by taking the coordinates of the three
points from the user.
17. Write a program in C to determine the type of a triangle (side-wise) by taking the coordinates of the vertices
from the user.
18.Given the values of the variables x, y and z, WAP to rotate their values such that x has the value of y, y has the
value of z and z has the value of x.
19.Given an integer, WAP that displays the number as follows:
First Line: all digits
Second Line: all except first digits
Third Line: all except first two digits and so on.
20. Write a Menu driven Program to perform addition, subtract, and divide, multiply and modulo division between
two numbers.
21. Write a Program to check whether a character inserted is a vowel or not.
22. Write a Program which take the no of the day of any week as input and display the corresponding Day of the
week.
(ii) 1+ + + +
! ! !
(iii) 1 + + +( )
(iv) 1+( ) +( ) + +( )
(v) 1 + + + ( 1) =2 ,
! ! !
(vi) + + + ( 1) =2 + 1,
! ! !
7. Write a program in C to find the sum of the digits of a given integer. Also find the reverse of the integer.
8. Write a program in C to display Fibonacci numbers ( 1 1 2 3 5 8 13 21 … … ). Also print the prime Fibonacci
elements within a given range.
9. Write a program in C that will check whether a given number is prime number or not. Also generate Twin-primes
between a given range.
+ , + , + , ….
For example 12, 23, 34, 45, 56, 67, 78, 89 etc
23. Write a program for generating all possible combinations of a set of n variables.
24. Write a program to generate the following pattern upto N rows:
1
2 5
6 9 14
15 18 23 30
: