how to use a variable outside of an if statement that is already declared inside an if statement
问题 hey guys im just learning C# in school and am having trouble figuring out how i can use a variable outside of an if statement when that variable is already declared inside an if statement..heres what my program looks like........i have to use the "factor" variable outside of the if statemants because it is part of an equation that i need for a school assignment..if i am missing anything or you need more information, plz dont hesitate to tell me public caloriesCalculator() {