Course Hero Logo

count.cpp - #include<iostream> #include<cmath> using...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 out of 1 page.

#include<iostream>#include<cmath>using namespace std;int count(int n){return floor(log10(n)+1);}int main(){
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
ANImesh
Tags
int count, Enter digit

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture