Sample Problem
•
Find the bugs in this code:
•
#include <iostream>
•
•
int main()
•
{
•
int i = 30;
•
while( i != 100 )
•
{
•
i++;
•
if ( i == 100 )
•
{
•
i = i – 1;
•
}
•
cout << i << “ “ << endl;
•
}
•
}