Lab Program Assignments-1
1. Write a C++ program to display the following output using a single cout statement.
maths=90
physics=89
chemistry=97
2. Write a C++ program that inputs a charater from keyboard and display its corrsponding ASCII
value on the screen.
3. Write a C++ program using class called temperature and memeber functions for a temperature
in Fahrenheit and display it in Celsius.
4. Write a C++ program function using reference variables as arguments to swap the values of a pair
of intergers.
5. Write a C++ program to print the following output using for loops.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5 5
6. Write a C++ program which explains and show different storage classes auto, extern static and
Register.
7. Write a C++ program to multiply the follwing matrix.
[1 1 3
A= 2 1 2
4 3 1]
[6 1 3
B= 1 1 2
9 3 1]