anybody tell me please what is wrong in this code it will give me only blank console screen?
#include <iostream>
using namespace std;
int main()
{
int x=1;
int y=2;
int z;
while(x<=50)
{
while(y<x)
{
z=x%y;
if(z==0)
{
cout<<x<<"is a prime number"<<endl;
}
else
{
y++;
}
}
x++;
}
return 0;
}
{
``