My code is working fine for single input but how to take multiple input. please explain

here is my code

@Anku47 corrected