You are on page 1of 4

IF AND ELSE AND OPERATORS

1. Write a program for greatest of 3 numbers using && operators?


2. Write a program for greatest of 3 numbers without using && operators?
3. Write a program for greatest of 3 numbers using conditional operators?

NESTED LOOPS & SWITCH CASE


4. To LCM of 2 numbers?
5. To find GCD of 2 numbers?
6. To check the given number is armstrong or not?
7. To print fibonacci series?
8. To find the sum of the series:1+1/2+1/3+...+1/n?
9. To find the sum of the series:1/12+1/22+1/32+...+1/n2 ?
10.To find the sum of the series:1/1+22/2+32/3+...+n2/n ?
11.To find the power consumption.
12.To find sum of the series:1/2+2/3+3/4+...+n/n+1 ?
13.Write a program to print student details?
14.To check a number is even or odd using control statements?
15.To check the given number is positive,negative or zero?
16.To print grades of students with 5 subjects?
17.To check given number is prime or not?
18.To check the given number is perfect or not?
19.To find sum,subtraction,division,multiplication upto how many numbers?
20.To find sum and multiplication of individual digits of given number?
21.To print factorial of given number?
22.To print tables?

FUNCTIONS & 1D ARRAYS


23.To find second largest element of an array?
24.To print digits into a number form?
25.Merging of two arrays?
26.Inserting of a number into the array?
27.Duplicate of an array?
28.Delete a number in a array?

2D ARRAYS

29.To print lower triangular matrix?


30.To print upper triangular matrix?
31.To print z matrix?
32.To print tri-triangular matrix?
33.To print diagonal elements of a matrix?
34.Bubble sorting of an array?
FUNCTIONS

35.Addition and substraction of two matrices?


36.Multiplication of two matrices?
37.Transpose of a matrix?
38.Symmetry of a mtrix?

STRINGS
39.Copying of a string from the given string from mth position?
40.Deleting a substring from the given string?
41.Extracting a string from left side?
42.Extracting a string from right hand side?
43.Extracting a string from middle?
44.Replace the space in the given string with'-'?
45.Read multiple lines of text and Re-write the lines printing numbers before
that?
46.Read multiple lines of text and Re-write it from mth position?
47.Inserting a string in the mth position of the given string?

IF AND ELSE & NESTED LOOPS


48.Conversion of binary to decimal,octal?
49.Conversion of decimal to binary,octal?
50.Conversion of octal to decimal,binary?
51.To print leap year or not?
52.Conversion of capital to small and small letters to capital?
53.To print the given character is vowel,conconent or any other character?
54.To print days of september by entering date print day and what else?
55.To print roots of quadratic equation?
56.To wish the passangers by asking the time?
57.To print employees salary?

SWITCH CASE
58.Using switch case print leap year or not?
59.Using switch case print vowel or consonent?
60.Using switch case print lower to upper and upper to lower?
61.Using switch case print grades of student?
62.Using switch case days of september?
63.Using switch case prints roots of quadratic equation?
64.Using switch case print the entered number is prime or not below 10 numbers
only?
65.Using switch case print entered number is positive,negative,zero?
66.Using switch case wishing of passengers by asking the time?
67. Using switch case employees salary?
NESTED LOOPS
68.To print sum of even and multiplication of odd numbers?
69.Write a C-program to convert the given positive integer into multiplication of
its
prime factors. (Input: n=84 ; Output: 2^2 * 3^1 * 7^1 ; Here 2, 3, 7 are prime
factors)
70. to print patterns:
*
**
***
****
71.
****
***
**
*
72.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
73.
R G U K T
R G U K T
R G R K T
R G U K T
R G U K T
74.Evaluate the following functions,
sinx = X X 3 /3! + x 5 /5! - X 7 /7! + ..............
75.cosx = 1 X 2 /2! + x 4 /4! - X 6 /6! + ..............
76.Binomial Coefficient calculation table
C(n,x) = n! / x!(n-x)!
output :
n / x 0 1 2 .............10
0 1
1 1 1
2 1 2 1
.
.
.
10

RECURSION

77.Write a program to print factorial using recursion?


78.Write a program to print fabinocci element using recursion?

POINTERS

79.Write a program using pointer to swap two numbers?


80.Write a program to print amrsrtong?
81.Write a program prime number series?
82.Write a program to print palindrome?