1) Write a program to illustrate bitwise operators. 2) Write a program to print all the alphabets and their equivalent ASCII values. 3) Write a program to calculate the sum of squares of first n natural numbers using while loop. 4) Write a program to illustrate short hand operators used in C. 5) Write a program to print the multiplication table in the following format. 1 1 2 3 4 5 2 2 4 6 8 10 3 3 6 9 12 15 4 4 8 12 16 20 5 5 10 15 20 25
1 2 3 4 5
6) Write a program to calculate the factorial of a given number. 7) Write a program to calculate sum of squares of cubes of first n natural numbers. 8) Write a program to reverse the given number. 9) Write a program to calculate mn value using do-while loop. 10) Write a program to check whether the given number is a palindrome or not. 11) Write a program to check whether the given number is an Amstrong number or not. 12) Write a program to check whether the given number is a perfect number or not. 13) Write a program to print the following format. * * * * *
* * * * * * * * * * 14) Program to calculate lucky number. 15) Write a program to calculate the result of the series accurate up to 7th digit. x+x3/3!+x5/5!+………………. 16) An electric power distribution company charges its domestic consumers as follows. Consumption Units Rate of Charge 0-200 Rs.0.50 per unit 201-400 Rs.100 plus Rs.0.65 per unit excess 200 401-600 Rs.230 plus Rs.0.80 per unit excess of 400. Write a C program that reads the customer number and power consumed and prints the amount to be paid by the customer. 17) Program to find the roots of the quadratic equation using bisection method.
UNIT-II
18) Write a program to print the elements of an array in reverse order. 19) Write a program to add all the elements of a two dimensional array. 20) Write a program to find the transpose of a given matrix.
21) Write a program to find the smallest and largest element in a two dimensional array. 22) Write a program to illustrate call by value.