5)
#include <iostream>
using namespace std;
int main(){
int a,b;
a=5;
b=-3,5;
s=a+b;
s=s*2-b;
cout << s;
}
6)
int x,y,z;
x=5;
y=-6;
if(x>y)z=x+y;
else{z=y-x;}
cout << z;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
5)
#include <iostream>
using namespace std;
int main(){
int a,b;
a=5;
b=-3,5;
s=a+b;
s=s*2-b;
cout << s;
}
6)
#include <iostream>
using namespace std;
int main(){
int x,y,z;
x=5;
y=-6;
if(x>y)z=x+y;
else{z=y-x;}
cout << z;
}