Computer Science, asked by killerrapper249, 4 months ago

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 shinchen08
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