Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
356 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main(){
	
	float a;
	cin >> a;
	
	if(a == 1000000){
	    cout << "7";
	}else if(a < 1000000){
	    cout << "6";
	}else if(a < 100000){
	    cout << "5";
	}else if(a < 10000){
	    cout << "4";
	}else if(a < 1000){
	    cout << "3";
	}else if(a < 100){
	    cout << "2";
	}else cout << "1";
}