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...
Learn a little bit about the new Pastebin.com on our help page. hide message
By leo on the 9th of Feb 2010 08:52:08 PM Download | Raw | Embed | Report
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.  
  5. const double strykGrense = 10;
  6.  
  7. double del1;
  8. double del2;
  9. double del3;
  10.  
  11. cout << "Vennligst skriv de tre resultatene mellom 0.0 og 20.0: " << endl;
  12. cin >> del1 >> del2 >> del3 ;
  13.  
  14. double totalPoeng;
  15. totalPoeng = del1 + del2 + del3;
  16. totalPoeng = totalPoeng / 3.0;
  17.  
  18. cout << "Total Poeng: " << totalPoeng << endl;
  19.  
  20. if (totalPoeng < strykGrense) {
  21. cout << "STRYK!" << endl;
  22. } else {
  23. cout << "BESTÅTT!" << endl;
  24. }
  25. return 0;
  26. }
Submit a correction or amendment below. [ previous version ] | [ difference ] | Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: