Did i convert this to vb.net correctly?
unsigned long int x, y, z;
cout<<"Enter a number: ";
cin>>y;
for (x = y;x>0;x=x/10){
z = x % 10;
cout<<z;
}
Dim x, y, z as Integer
Console.WriteLine("Enter a number: ")
y = console.ReadLine()
For x = 0 To y Step x=x/10
z = x Mod 10
console.WriteLine("{0}",z)
Next
unsigned long int x, y, z;
cout<<"Enter a number: ";
cin>>y;
for (x = y;x>0;x=x/10){
z = x % 10;
cout<<z;
}
Dim x, y, z as Integer
Console.WriteLine("Enter a number: ")
y = console.ReadLine()
For x = 0 To y Step x=x/10
z = x Mod 10
console.WriteLine("{0}",z)
Next