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 do we need polymorphism in c#?

1172


What are the types of abstraction?

1077


Can we have inheritance without polymorphism?

1027


What are the benefits of polymorphism?

1278


How do you use inheritance in unity?

1082


Write a c++ program to display pass and fail for three student using static member function

3401


Why do we use oop?

1102


What is encapsulation in ict?

1062


What is cohesion in oop?

1062


Why polymorphism is used in oops?

1053


What is destructor give example?

1057


What is the real time example of inheritance?

1153


Why do while loop is used?

1039


What are the two different types of polymorphism?

1145


Why is oop useful?

1109