- Create a variable named
nameand assign your name to it. Then print the value of the variable. - Create a variable
ageand assign your age to it. Later, reassign the variable with a new value and print the new value. - Assign the values
5,10, and15to three variablesa,b, andcin a single line. Print their values. - Swap the values of two variables
xandywithout using a third variable. Print their values before and after swapping. - Define constants
PIwith appropriate values and print them. - Write a program that calculates the area of a circle using the constant
PIand a variableradius. Print the area. - Define constants for the length and width of a rectangle. Calculate and print the area.
- Define a constant for π (pi) and a variable for the radius. Calculate and print the circumference of the circle.