Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example program
- #include <iostream>
- using namespace std;
- int main() {
- int A,B,C;
- cout<<"inserisci A,B,C";
- cin>>A>>B>>C;
- if(B>A){
- if(C>B){
- cout<<"l'ordine è"<<A<<B<<C;
- }else{
- if(C>A){
- cout<<"l'ordine è"<<A<<C<<B;
- }else{
- cout<<"l'ordine è"<<C<<A<<B;
- }}
- }else{
- if(C>A){
- cout<<"l'ordine è"<<B<<A<<C;
- }else{
- if(C>B){
- cout<<"l'ordine è"<<B<<C<<A;
- }else{
- cout<<"l'ordine è"<<C<<B<<A;
- }}}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement