error : you have used ''(inverted commas) in if condition for an integer
reason : inverted comas are used only when your scanned input is an character .
for expected output edit : if(no ==1)
To the question "how many" you're supposed to answer 49 as the ASCII code of the character '1' is 49.
if(no == '1') // Second if statement.
you do not compare no against the number 1, but against the the character 1 (character literals are within single quotes or apostrophes)
So either this (enter the character code for '1', that is 49), or do as AUM MUDALIAR suggested and make sure you compare against the a number, not a character.