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.
Intelligent homes are becoming increasingly popular as the cost/performance ratio of microcontrollers is continuously dropping. These systems incorporate various transducers to de
In this problem you are given a board in which some of the elements are placed as shown in diagram below. Each element represents a color. Fill the other elements in the board, suc
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
Aim: To implement a program to add two complex numbers using constructors. Code: class complex { int real; int img;
A: Here are a few of the many instance of operator overloading: myString + yourString may concatenate two std::string objects myDate++ may increment a Date object a * b may m
http://www.expertsmind.com/questions/decodethecode-30110560.aspx
Four cells, each with an internal resistance of 0.40 ? and an e.m.f. of 2.5 V are connected in series to a load of 38.40 ?. (a) Verify the current flowing in the circuit and t
Objective Using C++ string, classes, constructors and member functions. Task A Write a program (book.cpp) to store a list of book titles and the published dates. Your pro
boardcoloring with minimum color of 4
how to write c++ for function f(x)= 2x^3 -x^2 +10
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