Lab Activity2
Lab Activity2
Objective: Practice using the printf() function to display a simple pattern. Objective: Practice using the printf() function to display a simple pattern.
Task: Write a program that prints the following pattern: Task: Write a program that prints the following pattern:
Objective: Understand how to declare variables and use arithmetic operators. Objective: Understand how to declare variables and use arithmetic
operators.
Task: Write a program that calculates the sum, difference, product and
quotient of two numbers. Task: Write a program that calculates the sum, difference, product and
quotient of two numbers.