Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace MultiplyBy2
- {
- class Program
- {
- static void Main(string[] args)
- {
- double spox = 0;
- spox: double num = double.Parse(Console.ReadLine());
- if (num >= 0)
- {
- spox = num;
- Console.WriteLine($"Result: {num * 2:F2}");
- goto spox;
- }
- else
- {
- Console.WriteLine("Negative number!");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment