how do we read a particular digit/digits of a floating point number???

ive jus started out with C....hardly know anything and i was presented with this problem....

im supposed to write a program which accepts a floating point number from the user....and displays the rightmost digit of the integral part....(the digit at ones place)..

next..it asked me to modify the program such that two od the rightmost digits of the integral part of the number were displayed...

ill be very thankful for any help...