if structure

how to write an if structure that prints the word complete to the screen if the variable named percent_complete is equal to 100?
1
2
if(percent_complete == 100)
    output something
1
2
if(percent_complete==100)
     std::cout<<"complete";
closed account (3qX21hU5)
Reposting the same answer time? Yay

1
2
3
4
if (percent_complete == 100)
    std::cout << "Complete" << std::endl;
else
    std::cout << "You're stupid" << std::endl;


EDIT: Lol
Last edited on
You're*
No need to fight, people.
closed account (3qX21hU5)
Who's fighting?
Topic archived. No new replies allowed.