Skip to content

Instantly share code, notes, and snippets.

Created November 5, 2014 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/d846bfb7e40328bc8275 to your computer and use it in GitHub Desktop.
Save anonymous/d846bfb7e40328bc8275 to your computer and use it in GitHub Desktop.
Console.WriteLine("the num plz");
double x = double.Parse(Console.ReadLine());
do
{
if (x > 0)
{
Console.WriteLine(x);
}
else
{
Console.WriteLine((x * -1));
}
x++;
} while (x == 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment