I'm Running the following program in C # :
using System;
class MainClass {
public static void Main (string[] args) {
char seed = 'a';
char EndValue='z';
while ( seed <= EndValue){
Console.WriteLine(seed);
seed+=(char)1;
}
}
}
This works fine but changing the seed+=(char)1;
to seed = seed + (char)1;
It throws error
exit status 1
main.cs(9,8): error CS0266: Cannot implicitly convert type
int' to
char'. An explicit conversion exists (are you missing a cast?) Compilation failed: 1 error(s), 0 warnings" in repl.it