Computer Science, asked by adiudit47531, 1 year ago

How to find out the number of digits in a number in c

Answers

Answered by PiyushSinghRajput1
2

Find the number of digits using a while loop :

#include<stdio.h>

int main(){

int no;

int totalDigits = 0;

printf("Enter a number : ");

scanf("%d",&no);

while(no!=0

no = no/10;

Answered by Anonymous
2

Answer:

It is find to the number of digital of a number in c

Similar questions