| <<< | Index | >>> |
#include <iostream>
void main()
{
int x = -1;
if ( x > 0 ) {
std::cout << "x is positive";
} else if ( x < 0 ) {
std::cout << "x is negative";
} else {
std::cout << "x is zero";
}
}
| <<< | Index | >>> |