0% found this document useful (0 votes)
94 views5 pages

ITC Lab 3.1

This document outlines 7 tasks for a computing lab assignment. The tasks involve writing C++ programs that input and output integer variables to perform basic math operations like addition, subtraction, multiplication and division. They also require printing values in a formatted or tabular manner. The programs calculate sums, differences, products and totals based on input values.
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)
94 views5 pages

ITC Lab 3.1

This document outlines 7 tasks for a computing lab assignment. The tasks involve writing C++ programs that input and output integer variables to perform basic math operations like addition, subtraction, multiplication and division. They also require printing values in a formatted or tabular manner. The programs calculate sums, differences, products and totals based on input values.
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
You are on page 1/ 5

INTRODUCTION TO COMPUTING

LAB – 03
BSCS FALL 2020

Faculty of Information Technology


University of Central Punjab
TASK – 01
Write a C++ Program that will initializes an integer variable with any given value and prints the
variable using cout statement.

TASK – 02
Write a C++ code that creates an integer variable and inputs its value using cin statement and
prints the entered value.
TASK – 03
Write a Program that will print a table of a given number. Create an integer variable and
inputs its value using cin statement and prints the entered number’s table.

TASK – 04
Write a Program that creates two integer variables and inputs their value using cin statement
and prints their SUM, DIFFERENCE, PRODUCT AND DIVISION.
TASK – 05
Write a C++ program that creates 4 integer variables name Fuel, Rent, Bills & Total, the
program must input the first three variables and calculates their sum and print them in a
tabular form.

TASK – 06
Write a C++ program that creates variables for a result sheet and input their value from user
and print them in a formatted manner.
TASK – 07

Write a C++ program that inputs price and quantity of the following items and print the total
value. The items are Wheat, Rice & Sugar. (Value = Price * Quantity)

You might also like