#include <iostream> using namespace std; int isPrimeNumber(int); int main() { bool isPrime; for(int n = 2; n < 100; n++) { // isPrime will be true for prime numbers isPrime = isPrimeNumber(n); if(isPrime == true) cout<<n<<" "; } return 0; } // Function that checks whether n is prime or not int isPrimeNumber(int n) { bool isPrime = true; for(int i = 2; i <= n/2; i++) { if (n%i == 0) { isPrime = false; break; } } return isPrime; }
4. https://en.m.wikibooks.org/wiki/A-level_Computing/AQA/Computer_Components,_The_Stored_Program_Concept_and_the_Internet/Fundamentals_of_Computer_Systems/Generations_of_programming_language
By definition we have to:
The passenger is every human being transported in a means of transport. (Except for the driver.)
Passengers can carry suitcases, bags or backpacks to carry their belongings from one place to another on their trip.
For safety, the first thing passengers must use in any means of transport is the safety belt.
This protects you from accidents that may occur during the trip.
Answer:
As a passenger, the first thing you would do is wear a seatbelt.