0
How to write a program using decision making statements?
3 Answers
+ 8
#include <iostream>
using namespace std;
int main ()
{
float cookies;
cout << "Please input the amount of cookies you have : "; cin >> cookies;
if (cookies > 100)
{
cout << "You have less than " << cookies + 1 << " cookies! But that is quite an amount!" << endl;
}
else
if (cookies <= 100)
{
cout << "Too little cookies! " << endl;
}
return 0;
}
+ 7
Coookieees
0
int x = 5;
( x == 5 ) {
System.
out
.println("Yeah");
}