write the program for prime numbers?
Answer Posted / avinash
#include<stdio.h>
main()
int 1
{
printf("enter a number");
scanf("%d",1)
}
printf("The number is a prime number");
else
printf("The number is not a prime number");
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What does static variable mean in c?
What are the various types of control structures in programming?
What is pointer & why it is used?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
State the difference between x3 and x[3].
What is void c?
How can I handle floating-point exceptions gracefully?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Explain how can I prevent another program from modifying part of a file that I am modifying?
Are there namespaces in c?
What are the advantages of union?
How can you tell whether two strings are the same?
What does void main () mean?
Write a program to identify if a given binary tree is balanced or not.
Who developed c language and when?