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
What does return 0 do in c++?
What do you mean by delegate? Can a user retain delegates?
Explain how overloading takes place in c++?
How does a copy constructor differs from an overloaded assignment operator?
What is virtual base class uses?
What is object in c++ wikipedia?
What relational operators if statements in c++?
Write a program using display() function which takes two arguments.
Define vptr.
What is the standard template library (stl)?
How many characters are recognized by ANSI C++?
Explain the volatile and mutable keywords.
which operator is used for performing an exponential operation a) > b) ^ c) none
What are static member functions?
give me an example for testing a program showing the test path .show how the test is important and complex.