Wap to input a number and print the count of its digits.
Answers
Answered by
1
Answer:
We will create a C program to count the number of digits using functions.
- #include <stdio.h>
- int main()
{
- int num; // variable declaration.
- int count=0; // variable declaration.
- printf("Enter a number");
- scanf("%d",&num);
- count=func(num);
Similar questions