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 do while loop is used?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is protected in oop?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is the real time example of encapsulation?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is polymorphism explain its types?
What is polymorphism in oop example?
Advantage and disadvantage of routing in telecom sector
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
Can we define a class within the interface?
when to use 'mutable' keyword and when to use 'const cast' in c++
is there any choice in opting subjects like 4 out of 7
Prepare me a program for the animation of train
What is destructor example?