C++ Program – No of Digits

by Nideesh C on May 2, 2011 · 0 comments

in C++




//Downloaded From theonlinetutorials.com
//(C)1999.All rights reserved.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int s,n,i,d;
cout<<"Enter a number"<<endl;
cin>>n;
for(i=0;n>0;i++)
{
n=n/10;
}
cout<<i;
getch();
}



Not Satisfied ? Just search & get the result

Related Posts Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. C Program To find the sum of digits
  2. C program to accept an integer find the sum of the digits in it
  3. C program to accept a string and find the sum of all digits present in the string
  4. How to edit IE Toolbar
  5. How to monitor switch activity and its performance with LED Light

Leave a Comment

Previous post:

Next post: