Assignment – Week 2: Basic Programming
Concepts
Q1. Variables
Create 3 variables:
- Your name (string)
- Your age (integer)
- Are you a student? (boolean)
Q2. Type Casting
- Convert '50' (string) into an integer.
- Convert 20 (integer) into a string.
Q3. Small Program
Write a program that asks the user for two numbers, adds them, and prints the result.