get any number as input except 1 and the output will be
1.without using operators,expressions,array,structure.don't
print 1 in printf statement

Answer Posted / bheemakarna1989

example
input : 4554
output : 1



input :567
output : 1

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

pierrot's divisor program using c or c++ code

1734


What does the error message "DGROUP exceeds 64K" mean?

729


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1316


c language interview questions & answer

1465


Can you subtract pointers from each other? Why would you?

559






What is structure packing in c?

612


How do you initialize pointer variables?

616


What is structure of c program?

609


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

697


What standard functions are available to manipulate strings?

567


How can I manipulate individual bits?

611


how to count no of words,characters,lines in a paragraph.

3909


How can I determine whether a machines byte order is big-endian or little-endian?

624


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

678


What is c variable?

556