How do I create a multilanguage, single-file assembly?
No Answer is Posted For this Question
Be the First to Post Answer
Why do we overload constructors?
Are attributes inherited c#?
what optimizations does the c# compiler perform when you use the /optimize+ compiler option?
How long can a string be c#?
what is overloading & overriding
3 Answers Fulcrum Logic, Synergy,
What is the default value of decimal in c#?
What is the implicit name of the parameter that gets passed into the class set method?
Difference between debug.write and trace.write?
hi, I am a begineer to c sharp. I have written a code for finding out prime numbers. Can anyone identify what are the flaws in my code. Kindly donot complex the code or present logic because i am new to c sharp and just started learning programming language.Thanks in advance. class Program { static void Main(string[] args) { int a,b=1; a = int.Parse(Console.ReadLine()); c= int.Parse(Console.ReadLine()); if (a % b == 0 && a % 2 != 0 && a % a == 0) Console.WriteLine(a); else if (a % b == 0 && a % 2 == 0) Console.WriteLine(a%2); Console.WriteLine("Number is not PRIME"); Console.ReadLine(); } } }
What is the difference between System.String and System.StringBuilder classes?
what is virtual method in c#?
Define parsing? Explain how to parse a datetime string?