What is data type c#?
No Answer is Posted For this Question
Be the First to Post Answer
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
Why it's said that writing into .NET Application Configuration Files is a Bad Idea?
Can you inherit multiple classes in c#?
What is a type c#?
What's new in c#?
What is system predicate?
What is a c# delegate?
Which string method is used for concatenation of two strings in c#?
What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?
Describe an interface class?
What are the different types of assembly?
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(); } } }