+ 1

How to make a three integers and disorder there outputs?

5th Sep 2016, 3:38 PM
shawty
3 Respostas
+ 2
Clone post, please delete.
5th Sep 2016, 5:06 PM
Zen
Zen - avatar
+ 2
#include <iostream> using namespace std; int main() { int myVariable = 10,sum=2615,diff=0; cout <<sum << diff<< myVariable; return 0; } As of my knowledge, this is one of the way we can disorder the outputs.
8th Sep 2016, 2:15 PM
Sharanya Jidigam
0
Try this way. #include<iostream> using namespace STD; int main() { int a=10,b=20,c=30; int temp1; temp1=a; a=b; c=a; b=temp1; return 0; }
8th Sep 2016, 4:09 AM
Vincent Lee