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 is static class not inherited?
What is the advantage of oop over procedural language?
What makes a language oop?
What are main features of oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
what is difference between class template and template class?
What is abstraction and encapsulation?
Can private class be inherited?
What is abstraction in oop?
hi all..i want to know oops concepts clearly can any1 explain??
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is the difference between static polymorphism and dynamic polymorphism?
What is the types of inheritance?
What type of loop is a for loop?
what are the different types of qualifier in java?