0% found this document useful (0 votes)
7 views1 page

Week 2 Assignment

Uploaded by

zaheerkhan223347
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Week 2 Assignment

Uploaded by

zaheerkhan223347
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like