eolymp
bolt
Try our new interface for solving problems
Problems

Sum and amount

published at 4/14/24, 12:40:31 pm

include <iostream>

using namespace std; int main() { long long say=0,cem=0,n; while(cin>>n) { say++; cem+=n; } cout<<say<<" "<<cem; }