Worksheet 2a

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

1.

Declare 3 variables in each type(int, float, char, string, bool)


2. Assign each variable a value(i.e. for integer you can assign value as 4)
3. Print below texts on the console application
a. We will study c++
b. We can understand
C++
c. We
Will
Understand
C++
4. Follow the instruction below
a. Declare two integers
b. Print the text Enter two integers text
c. Input two integers (use cin)
d. Print the sum of two integers

You might also like