Solution of 1041 number !
please do not copy it rather watch it for learning purpose :)
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main ()
{
int a[3],b[3];
for(int i=0;i<3;i++)cin >> a[i];
for(int i=0;i<3;i++)b[i]=a[i];
sort (a,a+3);
for(int i=0;i<3;i++)cout << a[i] <<endl;
cout <<endl;
for(int i=0;i<3;i++)cout << b[i] <<endl;
return 0;
}
If you do not understand please leave a message here.
or mail us mechaboo786@gmail.com
or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/
please do not copy it rather watch it for learning purpose :)
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main ()
{
int a[3],b[3];
for(int i=0;i<3;i++)cin >> a[i];
for(int i=0;i<3;i++)b[i]=a[i];
sort (a,a+3);
for(int i=0;i<3;i++)cout << a[i] <<endl;
cout <<endl;
for(int i=0;i<3;i++)cout << b[i] <<endl;
return 0;
}
If you do not understand please leave a message here.
or mail us mechaboo786@gmail.com
or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/
Comments
Post a Comment