Exercises C++ Variables

List of Exercises of C++ Variables

  • Exercise 1
  • Exercise 2
  • Exercise 3
  • Exercise 4

Exercise 1

Create a variable named myNum and assign the value 50 to it.








Exercise 2

Display the sum of 5 + 10, using two variables: x and y.







Exercise 3

Create a variable called z, assign x + y to it, and display the result.








Exercise 4

Fill in the missing parts to create three variables of the same type, using a comma-separated list:




Comments

Post a Comment

Popular posts from this blog

ភាសាកម្មវិធី C++៖ អថេរ ឬអញ្ញាតិ