Posts

Write a program that asks the user to enter two integers, obtains the numbers from the user, then prints the larger number followed by the words "is larger." If the numbers are equal, print the message “These numbers are equal.”

Image
 

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.

Image
 

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.

Image
 

write a programm to find sum of two number

Image