Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float a, i, s=0;
- for(i=1; i<=4; i++)
- {
- cout<<"Introduceti numarul: "; cin>>a;
- if(a>0)
- s=s+a;
- else
- s=s;
- }
- cout<<"Suma maxima este: "<<s;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement