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>
The most common type of database is a <u>relational </u>database.
<h3>What is relational database?</h3>
A relational database is seen as a set up of information that is known to be put together data in a way that is predefined in its relationships and it is one where data is saved in one or more tables.
Note that it is one that do makes it easy to see and know how different data structures links to each other. Hence, The most common type of database is a <u>relational </u>database.
Learn more about database from
brainly.com/question/518894
#SPJ1
1 Select the file to be deleted
2 select delete from the file menu
3 click on the recyclebin
4 click on the delete icon
Answer:
serious concerns about.
Explanation:
Since the reports are indicating the almost all the Americans believe executive based decisions and it is a serious concern because the people should be taking their own decisions and the career decisions are the most important ones in a person's life. Depending on other to take decisions for you shows a weak character and lack of self-confidence.
Answer: C) remain unchanged
Explanation:
If the number of entries in the page table are basically decide by the size of virtual address. Each entry in the page table contain a frame number. Basically, page table are used by the virtual memory as data structure in computer system.
And the size of the page are not affected by the physical memory size so that is why, it remain unchanged.
Therefore, Option (C) is correct.