well let me tell u about [x] function
now try to draw a diagram in two phases ..
first for interval [0,1) .. so here [x] = 0 and x - [x] = x
so u can easily plot them
then for interval [1,2) .. here [x] = 1 and x - [x] = x - 1
so now this can also be plotted ..
now we get a parrellogram whose area can be easily calculated
the answer will come out to be 1
cheers