answersLogoWhite

0

class abc

{

void main( int num )

{

int d = 1;

int dig = 0;

int temp = num;

System.out.println(temp);

while(num > 9)

{

num = num / 10 ;

d = d * 10;

}

while( d != 0)

{

dig = temp / d;

if( dig 0)

System.out.print("Zero");

temp = temp - (dig * d);

d = d / 10 ;

}

}

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

C plus plus program to print number patterns?

bghjg


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?


C program to print mark sheet of 5 subjects and the number of students is user input?

hhh


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


A C program to print the number of words from given String?

/*We can calculate this with a lot of methods I'll explain only one of them */ *str = "abcd"; // this is a input string printf("%d", strlen(str));


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


What is a C program to print initials?

printf ("initials");


C program to fine the largest of 10 given number?

first sort the ten numbers in descending order and print the first number. That will be the largest no


Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program


How do you find prime no in gwbasic program?

10 input "enter a no."; n 20 for i = 1 to n 30 if n mod i = 0 then c = c +1 40 next i 50 if c = 2 then print "prime number" else print "not a prime number" 60 end


C program to print its own code?

You are referring to a quine


Write a c program to print the 100 to 1 nos?

Write a c program to print the 100 to 1 nos