I was doing while, do while, and I kept on getting 0 even when the num is greater than 10. If i want to state it to be false do I got to add an if statement so when I execute it , it will show that greater than 10 is false?
Code:# include <iostream> using namespace std; int main() { int x; x=0; do { cout <<"Hello World"; } while (x != 0); cin.get(); }



LinkBack URL
About LinkBacks


