Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- {
- int main()
- int n, V[50], i, s=0 ;
- cout <<"n="; cin>>n;
- for (i=1; i<=n; i++)
- {cout <<"V[" <<i<<"]=";
- cin>> V[i];
- if(V[i]%2==1)
- s=s+V[i];}
- cout s;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement