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.
Inheritance and Reuse Consider a car manufacturing company. When they require building a new car, they have two choices. They can start from the scratch, or they can change an
Question 1 Write a program that accepts two numbers from the user and swaps the two numbers without using a temporary variable Question 2 Write a program that accepts a 3x
Default Arguments A default argument is a value that is automatically assigned to a formal variable, if the actual argument from the function call is omitted. e.g. void
Mixed Mode Expressions and Implicit type Conversions A mixed mode expression is one in which the operands are not of the similar type. In this case, the operands are converted
The #undef Directive This directive undefines a previously explained macro. For, example the following will give an error since PI is undefined. #define PI 3
Explain about the Expressions in c Language? An expression is the combination of constants, variables and operators arranged as per the syntax of the language. Some of the illu
You have to write a subroutine (assembly language code using NASM) for the following equation.
Need help in network programming in C++ project. How much you charge?
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
full coding for lcm in c++
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