6. Write a program to input a number and count the number of digits. The program further
checks whether the number contains odd number of digits or even number of digits . in java
Answers
Answered by
2
Answer:
Program to count number of digits in an integer using a loop
#include <stdio.h>
int main()
{
int n;
int count = 0;
printf(“\nEnter the number: “);
scanf(“%d”, &n);
while(n != 0)
Similar questions
Math,
2 months ago
Computer Science,
2 months ago
Social Sciences,
4 months ago
Chemistry,
4 months ago
Physics,
10 months ago