Answer Posted / paramjeet singh
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,c;
printf("enter any number\n");
scanf("%d",&i);
printf("you have entered=%d\n",i);
for(c=2;c<=i-1;c++)
{
if(i%c==0)
printf("this no.is not a prime number");
}
printf("this is prime number");
getch();
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is c++ fully object oriented?
What are mutator methods in c++?
Can turbo c++ run c program?
How are pointers type-cast?
What is the syntax for a for loop?
Which programming language is best?
What do the header files usually contains?
What is the difference between a type-specific template friend class and a general template friend class?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
Do you know what are static and dynamic type checking?
Write about c++ storage classes?
What is virtual destructor ans explain its use?
Why c++ is faster than java?
What does the linker do?
What is the use of setfill in c++?