x =5
while(x<7)
print the value of x
x=x+1
while(x>2)
print the value of x
x=x-2
so i was thinking that the output of the program will be 5677753 but my program is against my opinion so i want to know the right output
#include <iostream>
using std::endl;
using std::cin;
int main()
{
int x = 5;
while(x < 7)
{
std::cout<<" value of x."<<x<<'\n';
x=x+1;
}
while(x > 2)
{
std::cout<<" value of x."<<x<<'\n';
x=x-2;
cin.get();
}
return 0;
}