2) Write a C program to generate the following pattern for n lines:
3) Write a ‘C’ Program to check whether a given number is Armstrong or not.
4)Write a C program to calculate the sum of digits of a given number.
7)Write a C program to generate the following pattern for n lines:
1 2 3 4
5 6 7
8 9
10
8) Write a C program to generate following pattern for n lines:
*
* *
* * *
* * * *
9)Write a C program to calculate sum of Fibonacci series up to a given number. .
10) Write a C program to calculate x(y+z) by using user defined function
12) Write a C program to calculate the x to the power y without using standard function.
13)Write a ‘C’ Program to accept a string from user and display the alternate characters
14)A) Write a C program to calculate the area of following: -
i. Circle
ii. Rectangle
iii. Triangle
15) Write a C program to check whether given number is Palindrome or not.
16)Write a C program to check whether given number is perfect or not.
17)Write a C program to generate following pattern for n lines.
A
B B
C C C
D D D D
E E E E E
Example:
If first number is 45 and second number is 534, then output will be 32.
(0*5 + 4*3 + 5*4 = 32).
18)Write a C program to convert a given string into uppercase & vice versa.
19)) Write a C program to generate following pattern for n lines:
1
3 5
7 9 11
21)Write a C program to display multiplication table up to given number.
23)Write a C program to covert temperature from Celsius to Fahrenheit.
24)Write a ‘C’ Program to swap two numbers using bitwise operator.
25)Write a C program to accept n different numbers and display sum of all +ve & -ve numbers.
27)Write a C program to calculate sum of all even numbers in an array.
29)Write a C program to check whether a given number is palindrome or not.
30)Write a C program to check whether a given number is palindrome or not.