Thread: make a C program???

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    3

    make a C program???

    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

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    You're going to have to show some effort on your part. We're not a homework completion service.

  3. #3
    Nub SWE
    Join Date
    Mar 2008
    Location
    Dallas, TX
    Posts
    133
    It doesn't even look like he ASKED for help.

    With a shrug of my shoulders, I have to say, STFW.

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    3
    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!!!!!

  5. #5
    Banned
    Join Date
    Nov 2007
    Posts
    678
    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.

  6. #6
    Nub SWE
    Join Date
    Mar 2008
    Location
    Dallas, TX
    Posts
    133
    Quote Originally Posted by dogar sahab View Post
    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!!!!!

    I'm simply saying that nobody is going to help you unless you show a little effort.

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with this program I'm trying to make
    By Sshakey6791 in forum C++ Programming
    Replies: 14
    Last Post: 12-01-2008, 04:03 PM
  2. Replies: 9
    Last Post: 06-17-2008, 11:38 AM
  3. want to make this small program...
    By psycho88 in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2005, 02:05 AM
  4. How To Make The Program Installed In Program Files Folder?
    By javacvb in forum Windows Programming
    Replies: 4
    Last Post: 11-05-2003, 05:33 PM
  5. any suggestions on how to make this program smaller?
    By bajan_elf in forum C++ Programming
    Replies: 4
    Last Post: 05-12-2003, 03:24 AM