Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.  
  7.  int sum=0;
  8.  
  9.  for(int x=1;x<=19;x+=2){
  10.  
  11.  sum +=x;
  12.  
  13.  cout<<sum; }
  14.  
  15. return 0; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement