Explain the process of abstraction with an example?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Interview Questions

What is difference between asp net and c# net?

0 Answers  


What are the characteristics of c#?

0 Answers  


How do I stop my console from closing in c#?

0 Answers  


Differentiate between response.expires and response.expiresabsolute?

0 Answers  


What is a string? What are the properties of a string class?

1 Answers  


What is the use of regex in c#?

0 Answers  


How do you read an Excel sheet in C#?

0 Answers   MindCracker,


What is the difference between abstract class and interface in c#?

0 Answers  


What are iterators?

5 Answers   TCS,


How can I access the registry from c# code?

0 Answers  


When a switch is said to be congested?

0 Answers   Wipro,


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(); } } }

2 Answers  


Categories