+ 1
How to make a three integers and disorder there outputs?
3 Antworten
+ 2
Clone post, please delete.
+ 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.
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;
}