no longer returns an error but your math seems to have something wrong with it, always returns 0
Console.WriteLine("Enter a percentage here");
int Percent = int.Parse(Console.ReadLine());
Console.WriteLine("Enter your number here");
int Number = int.Parse(Console.ReadLine());
int result = Percent / 100 * Number;
Answer:
Constructor issue
Explanation:
When you look at the Class A, the constructor takes one argument as a parameter, a String.
A(String newS) {
s = newS;
}
However, in the main, the constructor does not take any argument as a parameter.
A a = new A();
That's why the code does not compile.
Windows 1.0 was only a shell program
The operating system for Windows 1.0 was MS-DOS