SHARE
TWEET

problem

a guest Jun 26th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6.    
  7.     int i,n,sum=0;
  8.    
  9.     for(i=1; i<=n; i++){
  10.        
  11.         if(i%2 !=0){
  12.            
  13.             sum+=i;
  14.         }
  15.     }
  16.    
  17.     printf("%d\n",sum);
  18.    
  19.     return 0;
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top