Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void main()
- {
- setlocale(LC_ALL, "Russian");
- int a,b,c,d,a1,b1,c1,a12,b12,c12,d12;
- cout<<"Введите a, b, c, d: ";
- cin>>a>>b>>c>>d;
- if (a<=b && b<=c && c<=d) {
- ((a1=d, b1=d, c1=d)&&cout<<"Новые числа1: "<<a1<<b1<<c1<<d<<endl);
- } else {
- if (!(a>b && b>c && c>d)){
- ((a12=a*a, b12=b*b, c12=c*c, d12=d*d)&&cout<<"Новые числа1: "<<a12<<b12<<c12<<d12<<endl);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement