Computer Science, asked by dakshrajput8091, 1 year ago

Write a program to count and display division of a number

Answers

Answered by Anonymous
2

Answer:

How do you count the no of digits in a number in C?

1#include<stdio.h>

2int main(){

3int no;

4int totalDigits = 0;

5printf("Enter a number : ");

6scanf("%d",&no);

7while(no!=0){

8no = no/10;

Similar questions