Is c# used for any core features of windows vista?
No Answer is Posted For this Question
Be the First to Post Answer
How can I get the ascii code for a character in c#?
What is default boolean value in c#?
Difference between multi-level and multiple inheritance?
Will finally block get executed if the 1exception had not occurred?
Can we maintain state in webservice?
What is the implicit name of the parameter that gets passed into the class set method?
To whom a method is accesssed if it is marked as protected internal ?
What is a void c#?
What is jagged array in c#?
What is property in c#?
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(); } } }
How many types of collections are there in c#?