C++ Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start C++ Course
Register
Hovercraft calculate sales
+1
Author: Nada Tarek
Dark
Public
Save
CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include
<
iostream
>
using
namespace
std
;
int
main
()
{
int
x
;
cin
>>
x
;
if
(
x
<=
5
)
cout
<<
"Loss"
;
else
if
(
6
<=
x
&&
x
<=
9
)
cout
<<
"Broke Even"
;
else
if
(
x
>=
10
)
cout
<<
"Profit"
;
else
cout
<<
"Loss"
;
return
0
;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT