Code:
#include <iostream>
using namespace std;
int Zaehlen(int i, int value){
i += value;
return i;
}
int main(){
int Ergebnis = 0;
while(Ergebnis < 100)
{
Ergebnis = Zaehlen(Ergebnis,1);
cout << Ergebnis << endl;
}
system("pause");//wartet mit Aufforderung auf einen Tastendruck
}