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
EnJoy Aston Villa vs Ma...
30 sec ago
Untitled
16 sec ago
Manchester City vs Asto...
44 sec ago
~Watch Golden State War...
1 min ago
~~!!~~WaTcH AT&T Pe...
1 min ago
Untitled
27 sec ago
Draggable to drop once ...
28 sec ago
I FINK U FREEKY by DIE ...
28 sec ago
Layout Width
Share Pastebin
leo
By: a guest | Feb 9th, 2010 | Syntax:
C++
| Size: 0.49 KB | Hits: 32 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
This paste has a previous version,
view the difference
.
#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