Yup, me ... i wanna be friends
Answer:
Program is written in C++
#include<iostream>
using namespace std;
int main()
{
//1. Prime Number
int num;
cout<<"Input Number: ";
cin>>num;
int chk = 0;
for(int i =2; i <num;i++)
{
if(num%i==0)
{
chk = 1;
break;
}
}
if(chk == 0)
{
cout<<num<<" is prime"<<endl;
}
else
{
cout<<num<<" is not prime"<<endl;
}
//2. Greatest Common Factor
int num1, num2, x, y, temp, gcf;
cout<<"Enter two numbers: ";
cin>>num1;
cin>>num2;
x = num1;
y = num2;
while (y != 0) {
temp = y;
y = x % y;
x = temp;
}
gcf = x;
cout<<"Greatest Common Factor: "<<gcf<<endl;
// 3. LCM
cout<<"Enter two numbers: ";
cin>>num1;
cin>>num2;
x = num1;
y = num2;
while (y != 0) {
temp = y;
y = x % y;
x = temp;
}
gcf = x;
int lcm =(num1 * num2)/gcf;
cout<<"Least Common Multiple: "<<lcm<<endl;
return 0;
}
Explanation:
<em>I've added the full source code as an attachment where I make use of comments to explain some lines</em>
Answer:
B. #VALUE
Explanation:
Occurs if one of the variables in your formula is of the wrong type (e.g. text value when a numeric value is expected).
Answer:
Host A and B directly connected to Mbps link.they receive buffer to fill up the fact that Host A will sending in Mbps data faster than B removing the data from it.Once buffer has filled.Host B send a message to Host A to stop sending data then Host B sending a TCP to Host A.Then buffer will fill up again and this process will repeat.
The answer is (a. Semi-conducting)
In the computer industry, semi-metals with a semiconducting property are useful in making of semiconductors. These metals have high resistance but lower than compare to insulators. This conductor could be crystalline or amorphous solids.