answersLogoWhite

0


Best Answer

Yes. Use the following function to determine if two of three values are greater than 10.

bool f (int x, int y, int z) {

if (x<=10 )

return y>10 && z>10;

else if (y<=10)

return x>=10 && z>10;

else if (z<=10)

return x>10 && y>10;

return false;

}

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you write a program that will read three integers and output a message telling whether exactly two of them are greater than 10?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a pseudocode for a program that accepts two integers and substract 5 from the answer?

1. Accept the 2 numbers 2. Add the 2 numbers3. Compare answer with 54. If answer is greater than 5 subtract with 5 else give a error message.


Write a program in C for arithmetic operations between two integers your program should guide users with proper message or menu on the console?

Write a program in C for showing working of different logical operator in C.Your program should guide users with proper message/menu on the console. (5 Marks)


Write a program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 77?

What for? There is only a 154 inside that is divisible by 77...


When you get the message this program is not responding what does that mean and what causes it to do that?

the program is not working


Writes a c program to find the sum of all integers between 1 and n?

Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11


Write a shell program that Adds the integers 1 to 100 and dislay a message?

SUM = 0: FOR N = 1 to 100: SUM = SUM + N: Next N: PRINT CHR$(11); "Sum ="; SUM: END


How can one assign a list of integers in Java?

Put statements at the start of ones code will allow one to have a list of integers in their Java program. If one does this then they will successfully have integers in their code.


How do you reverse of the answer program integers in C programming?

sense question Your makes no.


Write a program in c that prompt user with following lines add two integers test an integer for odd or even and quit?

write a program in C that prompts the user with the following lines: a) Add two integers c) Compare two integers for the larger t) Test an integers for odd or even q) Quit


What exactly is the Dell Quickset?

Dell Quickset is exactly a program. It is a program that helps you keep track of your power management and other settings. This is a small and helpful program.


8086 assembly program to sort a list of integers?

assembly language program for sorting an array using 8086 microprocessor.


When attempting to install a program I get an error message saying that another installation is in progress. How can I solve this?

If a person is installing a program and an error message says another installation is in progress, it is possible that the program being loaded initially is not a viable program. Perhaps there is an error in the software program.