Guest User

Untitled

a guest
Feb 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <climits>
  3. using namespace std;
  4.  
  5. int main(){
  6. int getal, min, minplus, i, aant=0;
  7.  
  8. cout<< "Geef een reeks getallen en sluit af met een negagtief getal: " <<endl;
  9. cout<< "Geef een getal in: " <<endl;
  10. cin>>getal;
  11. min = minplus = INT_MAX;
  12.  
  13. while (getal>=0){
  14. if (getal<min);
  15. aant++;
  16. cout<< "Geeft getal: " << endl;
  17. cin>>getal;
  18. }
Add Comment
Please, Sign In to add comment