Posts

Any integer is input through the keyboard. Write a program to find out whether it is an odd number or even number.

Find the absolute value of a number entered through the keyboard.

SWITCH CASE PROGRAM IN C

Write a menu driven Program which has following options: 1. Factorial of a number. 2. Prime or not. 3. Odd or even 4. Exit Once a menu item is selected the appropriate action should be taken and once this action is finished, the menu should reappear. Unless the user selects the ‘Exit’ option the program should continue to work

Any year is input through the keyboard. Write a program to determine whether the year is a leap year or not.

If a four-digit number is input through the keyboard, write a program to obtain the sum of the first and last digit of this number.

Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into Centigrade degrees.

The length & breadth of a rectangle and radius of a circle are input through the keyboard. Write a program to calculate the area & perimeter of the rectangle, and the area & circumference of the circle.

If a five-digit number is input through the keyboard, write a program to reverse the number.