Answers for "how check ifs c++"

C++
2

if c++

int x = 20;
int y = 18;
if (x > y) {
  cout << "x is greater than y";
}
Posted by: Guest on February-11-2021
0

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."
	}
}
Posted by: Guest on August-19-2021

Browse Popular Code Answers by Language