How can i write a code in c# to take a number from the user
and then find all the prime numbers till the number entered
by the user.
Answer Posted / anjali
while(num>0)
{
if(num%2==1)
printf("num is prime value");
}
| Is This Answer Correct ? | 1 Yes | 10 No |
Post New Answer View All Answers
Why do we need polymorphism in c#?
What are the types of abstraction?
Can we have inheritance without polymorphism?
What are the benefits of polymorphism?
How do you use inheritance in unity?
Write a c++ program to display pass and fail for three student using static member function
Why do we use oop?
What is encapsulation in ict?
What is cohesion in oop?
Why polymorphism is used in oops?
What is destructor give example?
What is the real time example of inheritance?
Why do while loop is used?
What are the two different types of polymorphism?
Why is oop useful?