Ask Question
16 February, 01:32

Write a loop to output the word EXAM 99 times

+1
Answers (1)
  1. 16 February, 03:05
    0
    Following are the answer for the given question

    for (int i=1; i<=99; ++i) / / for loop

    {

    cout<<"EXAM"<
    }

    Explanation:

    In this question we using for loop which is iterating 99 times and print the

    word "EXAM " 99 times.

    The variable i is initialized by 1 and check the condition if the condition in loop is true it will execute the loop and print "EXAM". The loop will executed 99 times when the condition in loop is false then loop become terminated.

    Following are the program in c++

    #include/ / header file

    using namespace std;

    int main () / / main method

    {

    for (int i=1; i<=99; ++i) / / for loop

    {

    cout<<"EXAM"<
    }

    return 0;

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a loop to output the word EXAM 99 times ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers