Recent Posts
None | 34 sec ago
Java | 1 min ago
Prolog | 2 min ago
None | 3 min ago
Prolog | 4 min ago
Prolog | 4 min ago
AutoIt | 4 min ago
Prolog | 4 min ago
Prolog | 5 min ago
None | 5 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By leo on the 9th of Feb 2010 08:52:08 PM
Download |
Raw |
Embed |
Report
#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;
}
Submit a correction or amendment below.
[ previous version ] | [ difference ] | Make A New Post