C#
x
18
1
using System;
2
3
namespace ConsoleApp6
4
{
5
class Program
6
{
7
static void Main(string[] args)
8
{
9
double a;
10
a=Console.ReadLine();
11
for (int i = 1; i <= a; i++) {
12
Console.Write(i + "");
13
}
14
15
}
16
}
17
}
18
$ mcs -out:prog.exe prog.cs
Start
prog.cs(10,23): error CS0029: Cannot implicitly convert type `string' to `double'
Compilation failed: 1 error(s), 0 warnings
1
Finish