Write a program to count and display division of a number
Answers
Answered by
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
Environmental Sciences,
6 months ago
Math,
6 months ago
Math,
6 months ago
English,
1 year ago
Chemistry,
1 year ago
Social Sciences,
1 year ago
Science,
1 year ago