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
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
How to improve object oriented design skills?
What is oops in simple words?
What is difference between pop and oop?
Why do we use oops?
What is oops concept with example?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is the highest level of cohesion?
Can an interface inherit a class?
Can destructor be overloaded?
any one please tell me the purpose of operator overloading
Why is polymorphism used?
What is the fundamental idea of oop?
what are the different types of qualifier in java?
What are the features of oop?