Interactive Problems in Competitive Programming |  ; Iterating from lower_bound to upper_bound ; Input the response from the judge
using System ; class GFG { public static void Main ( string [ ] args ) { int lower_bound = 2 ; int upper_bound = 10 ; for ( int i = lower_bound ; i <= upper_bound ; i ++ ) { Console . WriteLine ( i ) ; int response = int . Parse ( Console . ReadLine ( ) ) ; if ( response == 0 ) { Console . WriteLine ( " Number ▁ guessed ▁ is ▁ : " + i ) ; break ; } } } }