pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
Untitled
1 sec ago
Untitled
4 sec ago
Untitled
7 sec ago
Untitled
8 sec ago
Untitled
10 sec ago
Untitled
15 sec ago
Untitled
16 sec ago
Untitled
16 sec ago
Layout Width
Share Pastebin
Hamido
By: a guest | Feb 9th, 2010 | Syntax:
C++
| Size: 0.49 KB | Hits: 27 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
#include <iostream>
using
namespace
std
;
int
main
(
)
{
const
double
strykGrense
=
10
;
double
del1
;
double
del2
;
double
del3
;
cout
<<
"Vennligst skriv de tre resultatene mellom 0.0 og 20.0: "
<<
endl
;
cin
>>
del1
>>
del2
>>
del3
;
double
totalPoeng
;
totalPoeng
=
del1
+
del2
+
del3
;
totalPoeng
=
totalPoeng
/
3.0
;
cout
<<
"Total Poeng: "
<<
totalPoeng
<<
endl
;
if
(
totalPoeng
<
strykGrense
)
{
cout
<<
"STRYK!"
<<
endl
;
}
else
{
cout
<<
"BESTÅTT!"
<<
endl
;
}
return
0
;
}
create new paste
|
create new version of this paste
RAW Paste Data