Answer:
double x = 2.5;
double y = -1.5;
int m = 18;
int n = 4;
string s = "Storm";
string t = "Watch";
The output of the expression "x + n*y - (x+n)*y" is "6.25".
and the output of expression "m/n + m%n" is "6".
Explanation:
for the first expression,
x + n*y - (x+n)*y ,put value of every variables in it.
=2.5+4*(-1.5)-(2.5+4)*(-1.5)
=2.5-6.0-(6.5*(-1.5)
=-3.5+9.75
=6.25
for the second expression,
m/n + m%n, put value of every variables in it.
=18/4 +18%4
=4+2 ("/ will give quotient and % will give remainder")
=6
Answer:
12345
Explanation:
10000+2000+300+40+5 =12345
Answer:
There are more airplanes in the ocean since airplanes can sink into the ocean.
Explanation:
Airplanes are able to sink into the ocean while a submarine cannot become stuck in air.
Yes there's syntax error .
After if there's colon so the next line or code block should start after some spaces(min 4)
The correct code is
![\tt def(a)](https://tex.z-dn.net/?f=%5Ctt%20def%28a%29)
![\tt if\:a](https://tex.z-dn.net/?f=%5Ctt%20if%5C%3Aa%3C10%3A)
![\quad\tt print(a,"is\:greater\:than\:10")](https://tex.z-dn.net/?f=%5Cquad%5Ctt%20print%28a%2C%22is%5C%3Agreater%5C%3Athan%5C%3A10%22%29)