Answer:
// here is code in c++.
#include <bits/stdc++.h>
using namespace std;
// function that return greatest common divisor
int g_c_d(int num1, int num2)
{
if (num1 == 0)
return num2;
return g_c_d(num2 % num1, num1);
}
// main function
int main()
{
// variables
int num1,num2;
cout<<"enter two numbers:";
// read two numbers from user
cin>>num1>>num2;
// call the function and print the gcd of both
cout<<"greatest common divisor of "<<num1<<" and "<<num2<<" is "<<g_c_d(num1.num2)<<endl;
}
Explanation:
Read two numbers from user and assign them to variables "num1" and "num2".Call the function g_c_d() with parameter "num1" and "num2".According to Euclidean algorithm, if we subtract smaller number from the larger one the gcd will not change.Keep subtracting the smaller one then we find the gcd of both the numbers.So the function g_c_d() will return the gcd of both the numbers.
Output:
enter two numbers:5 9
greatest common divisor of 5 and 9 is 1
enter two numbers:-25 15
greatest common divisor of -25 and 15 is 5
Answer:
"The holographic versatile disc".
Explanation:
According to my research on optical disk technology, I can say that based on the information provided within the question the technology being described in the question is called a "The holographic versatile disc".
Unfortunately it is not shown as an available answer but it is the correct answer. This is the only optical disk technology capable of holding 3.9 terabytes of data as well as meeting the specs mentioned in the question.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Thunderbolt ports are audiovisual ports typically used to connect large monitors.
<h3>What is a Thunderbolt port?</h3>
A Thunderbolt is known to be used in systems by users. It is one that helps its users to be able to use one cable to have an access to a high-speed and high-resolution media.
This is often done by using one port along with a cable that is able to access both DisplayPort and PCI Express. Thunderbolt is known to contain technology that has been built into it that helps PCI Express speed to come in a good and better way.
Learn more about ports from
brainly.com/question/10097616