Răspuns :
int n;
cin>>n;
if(n/100==0){
if(n/10==0) cout<<1;
else cout<<2;
}
else cout<<3;
#include <iostream>
using namespace std;
int main()
{
int n, nrcif=1;
cin >> n;
if (n>99) nrcif=3;
else
{
if (n>9) nrcif=2;
else nrcif=1;
}
cout << nrcif;
return 0;
}