0% found this document useful (0 votes)
51 views1 page

Lab Exercise 1

Uploaded by

gelgeuk02
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views1 page

Lab Exercise 1

Uploaded by

gelgeuk02
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab exercise 1

1. Write an if statement that assigns 0 to x


when y is equal to 20.
2. Write an if statement that multiplies
payRate by 1.5 when hours is greater than 40
3. Write a C++ program by using if/else
statement that prints the message “The number
is not valid.” if the variable hours is outside the
range 0 through 80.

You might also like