Answer:
See explanation
Explanation:
Word documents are mainly for typing papers and documents. This is useful for writing a report or making a book.
Excel is for writing spreadsheets and doing math equations within the program. This is useful for having budget calculators and math equations.
Hope this helped!
I would help if I knew how to do it
Clock..................................................
Answer:
C++.
Explanation:
#include <iostream>
using namespace std;
/////////////////////////////////////////////////////////
void printPrime(int n) {
if (n > 0) {
cout<<"[2";
for (int i=3; i<=n; i++) {
bool isPrime = true;
for (int j=2; j<i; j++) {
if (i % j == 0) {
isPrime = false;
break;
}
}
if (isPrime == true)
cout<<", "<<i;
}
}
else {
cout<<"Invalid input";
}
cout<<"]";
}
/////////////////////////////////////////////////////////
int main() {
int n;
cout<<"Enter positive integer: ";
cin>>n;
printPrime(n);
return 0;
}