write the program for prime numbers?
Answer Posted / vasanth
This program is to check a given number is prime or not
(or) list the prime numbers in a given no.
For example, the user enter the no is 50. the program is
list the prime numbers in 50.
| Is This Answer Correct ? | 402 Yes | 262 No |
Post New Answer View All Answers
Why does notstrcat(string, "!");Work?
What are the ways to a null pointer can use in c programming language?
Find MAXIMUM of three distinct integers using a single C statement
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Write a program to know whether the input number is an armstrong number.
What are the general description for loop statement and available loop types in c?
Where static variables are stored in memory in c?
What is actual argument?
What is struct node in c?
What is the advantage of a random access file?
Write a program to find factorial of a number using recursive function.
Why is this loop always executing once?
What do you mean by keywords in c?
Can we increase size of array in c?
Why should I use standard library functions instead of writing my own?