|
|
вернуться в форумhow will we our program (code) know " this is an end of input "? Hello! How do we know how many integers will be they entering as input? Because generally hitting "ENTER" indicates "end of input" but here any number of "Enter (New Line)" can be used between two Inputs.
They can input anything like this: --------------------------------------- 144 625 25 81 100 10000 3877935 --------------------------------------- how will we our program (code) know " this is an end of input "? I mean till when should we use "scanf" in program? thanks Edited by author 19.10.2011 02:45 Re: how will we our program (code) know " this is an end of input "? Re: how will we our program (code) know " this is an end of input "? It helped. Thanks! Re: how will we our program (code) know " this is an end of input "? Edited by author 20.10.2011 15:29 |
|
|