Honestly I think it's True. Tell me if i'm wrong or right.
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;
}
Answer:
the answer is computer, phone, laptop
Explanation: that is all ik
Answer:
The python expressions are given in the explanation section
The comments specifies each sub-question
Explanation:
#The sum of the first seven positive integers
sum =0
for i in range(1,8):
sum +=i
print(sum)
#The average age of Sara (age 65), Fatima (57), and Mark (age 45)
Sara_Age = 65
Fatimah_Age = 57
Mark_Age = 45
Average_Age = (Sara_Age+Fatimah_Age+Mark_Age)/3
print(Average_Age)
# 2 to the 20th power
num = pow(2,20)
print(num)
#The number of times 61 goes into 4356
num_times = 4356/61
print(num_times)
#The remainder when 4365 is divided by 61
remainder = 4365%61
print(remainder)
Answer:
Digital divide is the gulf between those who have ready access to computers and the internet and those who do not