Professional Documents
Culture Documents
2D ARRAYS
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?
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
POINTERS