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
What are the advantages of polymorphism?
Why is polymorphism important in oop?
Can bst contain duplicates?
What is polymorphism in oop example?
What is new keyword in oops?
Explain the concepts involved in Object Oriented programming.
What is protected in oop?
Is html an oop?
What is the importance of oop?
What are classes oop?
What is class in oop with example?
What is destructor give example?
What is object in oop?
What is difference between oop and pop?
What is abstract class in oop?