int number int index counter forindex 0 indexSolutionAnswer
Solution
Answer:
The answer we get after execution of the given code is as below :
Sleepy
Dopey
Wheezy
Source Code :
#include <iostream>
 #include <string>
 using namespace std;
 int main()
 {
 int number;
 int index,counter;
 for(index=0;index<2;index++)
 {
    number=index%2;
    for(counter=0;counter<number;counter++)
    cout<<\"Sleepy\"<<endl;
    if(number==1)
    cout<<\"Dopey\"<<endl;
 }
 cout<<\"Wheezy\"<<endl;
}
Output :
Sleepy
Dopey
Wheezy

