Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C Program to check PRIME NUMBERS
main()
{
int i,k,r,flag;
clrscr();
printf("ENTER THE NO. TO CHECK IT IS PRIME OR NOT: ");
scanf("%d",&k);
for(i=2;i<=k/2;i++)
r=k%i;
if(r==0)
flag=0;
else
flag=1;
}
if(flag==1)
printf("THIS IS A PRIME NO.");
printf("THIS IS NOT A PRIME NO.");
getch();
OUTPUT :
ENTER NO: 10
IT IS NOT A PRIME NO.
What is the difference between early binding and late binding? What are advantages of early binding? a.) Late binding refers to function calls which aren't resolved until run t
Assume variables x, f, and d are of type int, float, and double, respectively. Their values are arbitrary, except that neither f nor d equals +∞, -∞, or NaN . For each of the fo
External Variables Different functions of the similar program can be written in different source files and can be compiled together. The scope of a global variable is not limit
decodethecode
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec
The continue statement The continue statement causes the next iteration of the enclosing loop to start. When this is encountered in the loop , the rest of the statements in the
Charity Ball Organizer Many charities support good causes, but one of the difficulties each of them has is organizing their fundraising events. After nearly a semester of C pro
Refactoring Project Description: TASK 1 - DESIGN ALGORITHM You are required to design a suitable solution algorithm by using structured chart, pseudocode or flowchart. Thi
Precautions with function overloading Function overloading is a boon to designers, since dissimilar names for same functions need not be thought of, which often is a cumbersome
minimum shelf
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd