1. #include <iostream>
using namespace std;
int main ()
{ unsigned n, nrcif;
cin>>n;
nrcif=0;
while (n!=0)
{ nrcif=nrcif+1;
n=n/10; }
cout<<nrcif;
return 0;
}
2. #include <iostream>
using namespace std;
int main ()
{ unsigned a, b, s;
cin>>a;
cin>>b;
s=0;
while (a<=b)
{ s=s+a;
a=a+1; }
cout<<s;
return 0;
}