33. Program to Count Number of Digits of an Integer Get link Facebook X Pinterest Email Other Apps - August 26, 2015 Get link Facebook X Pinterest Email Other Apps Comments Unknown2:56 PM//Program to count Number of Digits of an Integer#include#includevoid main(){int n,i=0;clrscr();printf("\tEnter a Integer\n");scanf("%d",&n);while(n!=0){n/=10;++i;}printf("the digits = %d",i);getch();}ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
//Program to count Number of Digits of an Integer
ReplyDelete#include
#include
void main()
{
int n,i=0;
clrscr();
printf("\tEnter a Integer\n");
scanf("%d",&n);
while(n!=0)
{
n/=10;
++i;
}
printf("the digits = %d",i);
getch();
}