1 program

c++
 avatar
user_5784496
abc
2 years ago
188 B
2
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;
}