Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 4 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Management Posted 08 Jan 2018 My Price 7.00

number of primitive operations

Count the number of primitive operations.

How do I count the number of primitive operations of the whole program below?

#include <iostream>

int main(){                                  

       std::cout << "Input a Positive Number ";   

       int num;

       std::cin >> num;

       for (int i = 1; i <= num; i++)   

       {

               if (i % 2 == 0 && i % 3 == 0)

                       std::cout << "FooBar\n";   

               else if (i % 3 == 0)

                       std::cout << "Bar\n";   

               else if (i % 2 == 0)

                       std::cout << "Foo\n";   

               else

                       std::cout << i << std::endl;   

       }

       return 0;

Answers

(5)
Status NEW Posted 08 Jan 2018 09:01 PM My Price 7.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------

Not Rated(0)