What is the size of a decimal?
No Answer is Posted For this Question
Be the First to Post Answer
Explain what is copy constructor?
What are virtual classes in c#?
What is the delegate in c#?
What is marshalling and what are different kinds of marshalling?
How can I get the ascii code for a character in c#?
Can we declare private class in c#?
What is default access specifier for class in c#?
Is string primitive?
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 to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
What is a data set in c#?
What is a dbml?