28 lines
442 B
C++
28 lines
442 B
C++
#include <iostream>
|
|
using namespace std;
|
|
|
|
int main(){
|
|
int num = 0;
|
|
|
|
cout << "Enter an integer" << endl;
|
|
cin >> num;
|
|
|
|
//while(num = 1){
|
|
// cout << "Enter a non-one number: ";
|
|
|
|
// cin >> num;
|
|
//}
|
|
|
|
//cout << "What does assignment return?: " << (num = 10) << endl;
|
|
|
|
if(num == 0 && true){
|
|
cout << "Print true" << endl;
|
|
}
|
|
else {
|
|
cout << "Print false" << endl;
|
|
}
|
|
|
|
cout << "You got out" << endl;
|
|
return 0;
|
|
|
|
} |