Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

what is wrong in this code

$
0
0

include<iostream>

using namespace std; int main() { long long int a,c=0; cin>>a; if(a==0) { cout<<"1"; } while(a>0) { a=a/10; c++; } if(c>0) { cout<<c; } return 0;

}


Viewing all articles
Browse latest Browse all 39796


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>