Loopsquestion
Loopsquestion
2) Write a program in C to calculate the sum of the series (1*1) + (2*2) + (3*3) +
(4*4) + (5*5) + ... + (n*n).
3) Write a program in C to print a square pattern with # character
# # # #
# # # #
# # # #
# # # #
4) Write a program in C to display the cube of the number upto given an integer
5) Write a program in C to display the n terms of odd natural number and their sum.
6) Write a program in C to display the n terms of even natural number and their
sum.
7) Write a program in C to find the sum of the series 1 +11 + 111 + 1111 + .. n
terms.
8) Write a program in C to find the number and sum of all integer between 100 and
200 which are divisible by 9
9) Write a program in C to display the pattern like right angle triangle with
number.
1
12
123
1234
12345
10) Write a program in C to make such a pattern like a pyramid with numbers
increased by 1.
1
2 3
4 5 6
7 8 9 10
ARRAYS
Strings
21) Write a C program to sort a string array in ascending order.
22) Write a program in C to read a string through keyboard and sort it using bubble
sort.
23) Write a program in C to split string by space into words.
24) Write a C programming to convert vowels into upper case character in a given
string.