Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why is static class not inherited?

1151


What is the advantage of oop over procedural language?

1128


What makes a language oop?

1127


What are main features of oop?

1180


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2508


what is difference between class template and template class?

2713


What is abstraction and encapsulation?

1058


Can private class be inherited?

1222


What is abstraction in oop?

1187


hi all..i want to know oops concepts clearly can any1 explain??

2175


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2676


What is the difference between static polymorphism and dynamic polymorphism?

1136


What is the types of inheritance?

1149


What type of loop is a for loop?

1133


what are the different types of qualifier in java?

2317