stfstf Posted December 8, 2020 Report Share Posted December 8, 2020 #include <bits/stdc++.h> using namespace std; int main() { /// int n; cin>>n; n=n/10; int p=1,copie=n; while(copie) { copie=copie/10; p=p*10; } p=p/10; n=n%p; cout<<n; /// return 0; } Quote Link to comment Share on other sites More sharing options...
theandruala Posted December 8, 2020 Report Share Posted December 8, 2020 R3 Quote Link to comment Share on other sites More sharing options...