rishabhyadav
New member
- Joined
- Jun 10, 2022
- Messages
- 1
- Programming Experience
- Beginner
I have this code i want to print input outside of try block i got error Use of unassigned local variable 'response'
C#:
int Input;
try{
Input=Convert.ToInt32(Console.ReadLine());
}
catch{
//code here
}
Console.WriteLine(UserInput);//Use of unassigned local variable 'response'
Last edited by a moderator: