Last change
on this file since 145 was 2, checked in by Rick van der Zwet, 15 years ago |
Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)
|
-
Property svn:executable
set to
*
|
File size:
359 bytes
|
Line | |
---|
1 | #include <iostream>
|
---|
2 | #include <iomanip>
|
---|
3 | using namespace std;
|
---|
4 | int main ( ) {
|
---|
5 | double getal1, getal2, resultaat;
|
---|
6 | cout << "Eerste getal : ";
|
---|
7 | cin >> getal1;
|
---|
8 | cout << "Tweede getal : ";
|
---|
9 | cin >> getal2;
|
---|
10 | resultaat = getal1 + getal2;
|
---|
11 | cout << "Uitkomt : " << setprecision (2) << setiosflags (ios::fixed|ios::showpoint) << (resultaat/2) << endl;
|
---|
12 | return 0;
|
---|
13 | } //main
|
---|
Note:
See
TracBrowser
for help on using the repository browser.