write a C program that takes the floating point number from the user and prints the right most digit of the number as well as the right most digit of the integral part.
e.g
the input given is 32.145
the output must be
5
2
write a C program that takes the floating point number from the user and prints the right most digit of the number as well as the right most digit of the integral part.
e.g
the input given is 32.145
the output must be
5
2
You're going to have to show some effort on your part. We're not a homework completion service.
It doesn't even look like he ASKED for help.
With a shrug of my shoulders, I have to say, STFW.
actually i am not getting the algorithm to do this problem...how can i develop that..and excuse me JDGATX,u want others to entreat to u for help...if u know the answer then do it,otherwise remain away from it...i am only asking help from those who want to give without any pleading!!!!!
dogar sahab apne aadmiyon se kaho 27 kilo sona leke kali mata ke mandir ke pichhe mile, wahin is problem ka solution bhi mil jayega!
edit: i thought i should translate the above sentence (which was in Hindi)
dogar sahab tell your men to bring me 27kg of gold behind the temple of kali mata (hindu goddess) and i will give you solution! haha! lol!
Last edited by manav; 04-15-2008 at 02:46 AM.
At least show us you can get as far as reading the input, even if you don't quite know what do do with it when you've got it.
It makes it look like you've done something, whereas opening with "write a C program" with no evidence of effort is just asking for DYOH responses.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.