Explain About .NET Framework
No Answer is Posted For this Question
Be the First to Post Answer
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 are the different types of classes in c#?
What is constants in c#?
What is system predicate?
Is c# still popular?
What are events in C#?
Explain about Serialize and MarshalByRef?
Which .gang of four. Design pattern is shown below?
What is an arraylist in c#?
Can you change the value of a variable while debugging a C# application?
Error handling and how this is done ?
What do you know about WM_CHAR message?