FindPrimeNumbers.cpp - AST21105 Object Oriented Programming and Design Lab04 Suggested Solution#include is a pre-processor command denoted by which

FindPrimeNumbers.cpp - AST21105 Object Oriented Programming...

This preview shows page 1 out of 1 page.

// --------------------------------------------------- // // AST21105 Object Oriented Programming and Design // Lab04 - Suggested Solution // // --------------------------------------------------- // #include is a pre-processor command denoted by #, // which tells the compiler to take iostream and ctime, // compile them into the program which is anothor file // that has the implementation of cin, cout and time function #include <iostream> // The using namespace std is inserted, so that it helps to avoid // the needs of writing std::cout and std:cin in the code using namespace std; int main() { // The number of primes found int count = 0; int number; cout << "Enter the value of n: ";
Image of page 1

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture