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:
Answer:
Troubleshooting
Explanation:
These actions are called troubleshooting.
Troubleshooting is used to diagnose the unexpected error while you are performing some action on the computer. For example
You are running skype, and a one-day mic or sound performing unexpected error. What will you do? You have to perform the troubleshooting for MIC and sound to diagnose the problem.
During troubleshooting, you will wizard through steps of the procedure to diagnose the problem step by step. If the problem will be identified, the solution will be suggested.
You may experience sometimes your Wifi router at home not working. For this to identify the unexpected error you will perform the troubleshooting.
In short, troubleshooting is used to diagnose unexpected error while performing some action on the computer. If troubleshooting does not work, then close all the programs running on your machine, then shut down your computer. Wait a couple of minutes, and then start your computer and see, the problem may have been alleviated.
Answer:
background-color: (Color)
Explanation:
This is actually CSS coding, as you would code it like:
Body {
background-color: (Color)
}
Answer:
The correct option : b. new GridLayout(4,3)
Explanation:
The total number of rows are 4 and total number of columns are 3.
So the total keys can be added is 4*3=12. This is suited for telephone keypad.
Answer:random
Explanation:
A random method returns a number between zero and one.