Code for the practice Problem Life, the Universe, and Everything'.Its giving the wrong Answer._Please anyone Analyse and tell???

#include
using namespace std;
int main()
{
int a;
A:
cin>>a;
if(a==42) return 0;
cout<<a;
goto A;
return 0;
}

1 Like
//