1 program
c++user_5784496
abc
3 years ago
188 B
8
Indexable
#include <iostream>
using namespace std;
int main()
{
int i,s,n;
cin>>n;
s=0;
do {
cin>>i;
s=s+i;
}
while (s<n);
return 0;
}
Editor is loading...