> percent=marks/1100*100;
You need to make the right hand side into a float expression before evaluating it (think of a cast).