Main.xaml: Compiler error(s) encountered processing expression "num1". 'num1' is not declared. It may be inaccessible due to its protection level

create a variable num1 and u have to enter it in “Label” not in “title”

I believe you are trying to test the number entered by the user. just write in “label” with double quotes"Enter the number"