Assignment 1
Task 1: Declare and Initialize Variables
Declare variables of the following types: int, float, char, and string.
Initialize each variable with appropriate values (for example, int with an integer,
float with a decimal number, etc.).
Print the values of these variables to the console.
Task 2: Simple Input and Output
Declare an integer variable age.
Prompt the user to enter their age and store the input in the variable age.
Print out the entered age with an appropriate message.
Task 3: Commenting Code
Write a simple program that declares three variables: int num1, float num2, and
char letter.
Comment each variable's declaration to explain its type and purpose.
Print the values of these variables with an explanation of what each one represents.
Task 4: Multiple Variable Declaration
Declare and initialize three variables: int a, float b, and char c on a single line.
Assign values to these variables (e.g., a = 10, b = 3.14, c = 'A').
Print the values of these variables.