Assignment 1 - Variables and Data Types
Assignment 1 - Variables and Data Types
**********************
| |
| Welcome |
| |
**********************
6. Write a program to read an integer from the user and print it on the screen.
7. Write a program to input two numbers and print its addition, subtraction, multiplication and
division.
8. Write a program to input rupees and print its value converted to Dollar.
9. Write a program to input a number from user and print its multiplication table up to
10. Write a program to input a number and print its square and cube.
11. Write a program which accepts temperature in Fahrenheit and print it in centigrade.
12. Write a program to calculate the area of a rectangle.
13. Write a program to calculate the area and perimeter of a circle.
14. Write a program to calculate the area of a triangle.
15. Write a program to calculate simple interest taking input from the user.
16. Write a program to take any employee details and display it.
17. Write a program to take a number from user decrement the value by 3
18. Write a program to convert temperature from Fahrenheit to Celsius degrees.
19. Write a program that reads a number in inches and converts it to meters.
20. Write a program which accepts a character and displays its next character.
21. Write a program that reads an integer between 1000 and 9999 and adds all the digits in the
integer.
Page 1 of 1