I just start to learn c++.

I have a code to determine what is mean for x when x is a certain number. However, I can't show the result of it. Can someone check for my code, please!

Thanks

#include <iostream> using namespace std; int main() { int x; char result,W,S,Nothing; start: { printf("x="); scanf("%i",&x); if (x>=60 && x<=100) //if the range is larger than or equal to 60, showed "W". result=W; else if (x<=-40 && x<=-100) //if the range is smaller than -40, showed "S". result=S; else //(x<=59&&x>=-39) //if x is in the range between -39 to 59, showed "Nothing". result=Nothing; printf("result= \n\n", result); goto start; return 0; } }