Click here to Skip to main content
15,915,702 members

Comments by Bogdan Alexandru Oct2022 (Top 11 by date)

Bogdan Alexandru Oct2022 27-Nov-22 9:28am View    
Deleted
#include<stdio.h>
int main()
{
int num , count=0;
scanf("%d",&num);
while(num)
{
num=num/10;
count++;
}
if(num==0);
printf("Num has 1 digit");
{
else
{
printf("The num has %d digits",count);
}
return 0;
}
}
it is ok like this ?
Bogdan Alexandru Oct2022 20-Nov-22 7:10am View    
can u tell me how to write it pls?
Bogdan Alexandru Oct2022 10-Nov-22 12:37pm View    
Thank you
Bogdan Alexandru Oct2022 10-Nov-22 12:37pm View    
better.Thanks
Bogdan Alexandru Oct2022 10-Nov-22 10:54am View    
ohh ok.Thank you