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 does *p++ do?
What is bubble sort in c?
What is .obj file in c?
How do I send escape sequences to control a terminal or other device?
Differentiate between Macro and ordinary definition.
Explain why C language is procedural?
How many loops are there in c?
Explain how do you determine a file’s attributes?
How to compare array with pointer in c?
what is the syallabus of computer science students in group- 1?
What is 1d array in c?
Can you pass an entire structure to functions?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
Where register variables are stored in c?