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


Please Help Members By Posting Answers For Below Questions

What is I ++ in c programming?

630


What are the properties of union in c?

596


Can we declare a function inside a function in c?

597


What is the difference between class and object in c?

588


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

752






How do you construct an increment statement or decrement statement in C?

747


There seem to be a few missing operators ..

621


Which node is more powerful and can handle local information processing or graphics processing?

831


What is a method in c?

630


What is the main difference between calloc () and malloc ()?

576


What does the c preprocessor do?

625


How can you increase the size of a dynamically allocated array?

649


What is #include in c?

604


What does 2n 4c mean?

725


Difference between strcpy() and memcpy() function?

684