Skip to content

Khushboo741/day3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

day3

#include using namespace std; int main(){ int n,i,sum=0; cout<<"enter value of n"; cin>>n; i=1;

while(i<=n){ if(i%2==0){ sum=i+sum; } i=i+1; }

cout<<sum;

return 0; }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published