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 ;
}
}
}
bghjg
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?
hhh
write a program to print A to Z on screen in c?
/*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));
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.
printf ("initials");
first sort the ten numbers in descending order and print the first number. That will be the largest no
write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C 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
You are referring to a quine
Write a c program to print the 100 to 1 nos