/* * @topic T00026 Feb 14, 2013 -- arithmetic if operator * @brief Using if statement to decide how to initialize the variable */ #include <iostream> int main() { int value = 1; int dummy = -1; if ( value > 0 ) { dummy = value * 100; } else { dummy = -1; } std::cout << dummy << "\n"; return 0; }