Your code have 4-5 mistakes float f=kkr.nextFloat(); see all this statements u forget to use round bracket And again check your conditions what u wrote.
float a=2311; float b=1530; float c=1234; float d=5678; These Value 2311 ,1530... are double value and u assigned double Value to float variable a,b,c,d, if you will compare double with float Values' than float will loose some precision so it would be better if u will use double data type instead of float
Can u explain more
The program is not executing and showing it has many type of errors
Condition mistake can you explain more briefly
I'm not able to get up with the string