Posts
Write a program that prints the numbers 1 to 4 on the same line with each pair of adjacent numbers separated by one space. Write the program using the following methods: a) Using one output statement with one stream insertion operator. b) Using one output statement with four stream insertion operators. c) Using four output statements.
- Get link
- X
- Other Apps
Write a program that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, product, difference, and quotient of the two numbers.
- Get link
- X
- Other Apps