Advertisement
cp-pum4

Untitled

May 5th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int suma;
  8. int x;
  9.  
  10. x= 1;
  11. suma = 0;
  12.  
  13.  
  14. while ( x <=> 50){;
  15. suma += x;
  16. ++x;
  17. }
  18.  
  19. cout << "La suma es:" >> suma << endl;
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement