Answer:
Physical science is the study of the inorganic world. That is, it does not study living things. (Those are studied in biological, or life, science.) The four main branches of physical science are astronomy, physics, chemistry, and the Earth sciences, which include meteorology and geology.
Answer:
constant or constant expression
register name
variable name (memory)
Explanation:
Literally, operand means data which an operation can be performed on. The operation could be an arithmetic or logical operation.
From the list of options, several operations can be performed on:
- constants e.g.
- registers and
- variables e.g. (a + b)
<em>However, no operation can be performed on keywords and/or reserved words.</em>
Answer:
#include<iostream>
using namespace std;
int lcm(int m, int n) {
int a;
a = (m > n) ? m: n;
while (true) {
if (a % m == 0 && a % n == 0)
return a;
++a;
}
}
int gcd(int m, int n) {
int r = 0, a, b;
a = (m > n) ? m : n;
b = (m < n) ? m : n;
r = b;
while (a % b != 0) {
r = a % b;
a = b;
b = r;
}
return r;
}
int main(int argc, char **argv) {
cout << "Enter the two numbers: ";
int m, n;
cin >> m >> n;
cout << "The LCM of two numbers is: " << lcm(m, n) << endl;
cout << "The GCD of two numbers is: " << gcd(m, n) << endl;
return 0;
}
Explanation:
Default tab stops are set in word every 1/2 inch so your correct answer is C :)