eolymp
bolt
Спробуйте наш новий інтерфейс для відправки розв'язків
Задачі

Сума парних

опубліковано 26.03.24, 20:54:19

qirmizi edalet

опубліковано 26.03.24, 20:54:23

qirmizi edalet

опубліковано 26.03.24, 20:54:25

qirmizi edalet

опубліковано 08.04.24, 11:39:40

include <iostream>

include <cmath>

include <algorithm>

using namespace std; int main() { int n,s=0; while(cin>>n){ if(n%2==0) s=s+n;} cout<<s;}

опубліковано 12.04.24, 15:17:06

include <iostream>

include <cmath>

include <algorithm>

using namespace std; int main() { int n,s=0; while(cin>>n) { if(n%2==0) s=s+n; } cout<<s; }