write the program for prime numbers?
Answer Posted / santhoshi
main()
{
for(int i=1;i<100;i++)
{
count=0;
for(j=1;j<=100;j++)
{
if(i%j==0)
{
count++;
}
}
if(count==2)
{
printf(i);
}
}
getch();
}
Is This Answer Correct ? | 12 Yes | 12 No |
Post New Answer View All Answers
What are multibyte characters?
What are valid signatures for the Main function?
What is the use of a semicolon (;) at the end of every program statement?
Apart from dennis ritchie who the other person who contributed in design of c language.
What are the advantages of using macro in c language?
What is the use of bitwise operator?
Explain how do you view the path?
What are the string functions? List some string functions available in c.
What is c language used for?
Can a file other than a .h file be included with #include?
What is the meaning of 2d in c?
What is the difference between break and continue?
Is c procedural or functional?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
can any one tel me wt is the question pattern for NIC exam