Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to do if command in c++

#include <iostream>

include namespace std;

int main() {
	int flourBagCount = 16;

 	if (flourBagCount < 15) {
		cout << "There are not enough bags of flour in inventory."
	} else {
		cout << "There are enough bags of flour in inventory."
	}
}
Source by careerkarma.com #
 
PREVIOUS NEXT
Tagged: #command
ADD COMMENT
Topic
Name
6+3 =