Question about Computers & Internet

#include<iostream.h>

#include<conio.h>

#include<process.h>

void main()

{

int num;

cout<<"\nEnter a number:";

cin>>num;

for(int i=2;i<num;i++)

if(num%2==0)

{

cout<<"\nThe number you have entered is not a prime number";

exit(0);

}

cout<<"\nThe number you have entered is a prime number";

return 0;

}

PLEASE DONT FORGET TO RATE

THANKS ANS REGARDS

Posted on Jun 09, 2008

Hi,

a 6ya expert can help you resolve that issue over the phone in a minute or two.

best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.

the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).

click here to download the app (for users in the US for now) and get all the help you need.

goodluck!

Posted on Jan 02, 2017

You must contact AMAZON customer service by phone is the easy way, but following the instructions below will work as well.

*How do you unsubscribe from Amazon Prime?*
*To end your Amazon Prime membership or cancel your free trial:**Go to Manage Your Prime Membership.**Depending on whether you have a paid Amazon Prime membership or are on a free trial, do one of the following: To end a paid membership, click End membership, on the left-hand side of the page.*

Jan 21, 2017 | Amazon Computers & Internet

Oil suction filter may be clogged. Did you check it?

May 21, 2008 | 1992 Mercedes-Benz 190

- Go to Manage Your Prime Membership.
- Depending on whether you have a paid Amazon Prime membership or are on a free trial, do one of the following: To end a paid membership, click End membership, on the left-hand side of the page.

Dec 14, 2016 | Amazon Computers & Internet

They are different programs. Prime has a loaner program for books. Check online for unlimited pricing.

Nov 22, 2016 | Amazon Tablets & eReaders

Hi

You don't mention it so I have assumed that you are referring to "Amazon Prime". This is £79 per year.

There is a free 30 day trial.

I cannot log into your account, but can advise that your payments will be 12 months apart, so worth checking when first was made, or whether you are still within trial period.

Cheers

You don't mention it so I have assumed that you are referring to "Amazon Prime". This is £79 per year.

There is a free 30 day trial.

I cannot log into your account, but can advise that your payments will be 12 months apart, so worth checking when first was made, or whether you are still within trial period.

Cheers

Jan 12, 2015 | Computers & Internet

Your answer should lie on this page

End Your Amazon Prime Membership

End Your Amazon Prime Membership

Oct 09, 2014 | Amazon Stores

Try to turn it off. If touch pad is inactive, then hold down power button until it shuts off. If it happens again after first or second boot I would advice to check/test Hard Drive and RAM

Aug 19, 2011 | Sylvania G-Netbook

#include<stdio.h>

#include<conio.h>

void main()

{

int n,i,rem,prime,primchk=1,chk;

clrscr();

printf("\nEnter the limit\n");

scanf("%d",&n);

printf("\n\n\nThe prime numbers are\n");

printf("\n2\t3\t");

for(primchk=1;primchk<=n;primchk++)

{

for(i=2;i<primchk;i++)

{

if(primchk%i==0)

{

chk=1;

chk=0;

break;

}

if(i==primchk-1)

{

if(chk==0)

{

printf("%d\t",primchk);

chk=0;

}

}

}

}

getch();

}

#include<conio.h>

void main()

{

int n,i,rem,prime,primchk=1,chk;

clrscr();

printf("\nEnter the limit\n");

scanf("%d",&n);

printf("\n\n\nThe prime numbers are\n");

printf("\n2\t3\t");

for(primchk=1;primchk<=n;primchk++)

{

for(i=2;i<primchk;i++)

{

if(primchk%i==0)

{

chk=1;

chk=0;

break;

}

if(i==primchk-1)

{

if(chk==0)

{

printf("%d\t",primchk);

chk=0;

}

}

}

}

getch();

}

May 20, 2009 | Computers & Internet

#include<stdio.h>

#include<conio.h>

void main()

{

int num,i=1,j,k;

clrscr();

printf("\nEnter a number:");

scanf("%d",&num);

while(i<=num)

{

k=0;

if(num%i==0)

{

j=1;

while(j<=i)

{

if(i%j==0)

k++; j++;

}

if(k==2)

printf("\n%d is a prime factor",i);

}

i++;

}

getch();

}

#include<conio.h>

void main()

{

int num,i=1,j,k;

clrscr();

printf("\nEnter a number:");

scanf("%d",&num);

while(i<=num)

{

k=0;

if(num%i==0)

{

j=1;

while(j<=i)

{

if(i%j==0)

k++; j++;

}

if(k==2)

printf("\n%d is a prime factor",i);

}

i++;

}

getch();

}

May 16, 2009 | Computers & Internet

write the following function and call it whenever you need to evaluate a number:

Private Function IsPrime(ByVal Number As Long) IsPrime = False Dim I As Long For I = LBound(Primes) To UBound(Primes) DoEvents Call UpdateStatus(Number, Primes(I)) If (Number Mod Primes(I) = 0) Then Exit Function If (Primes(I) >= Sqr(Number)) Then Exit For Next IsPrime = True End Function

Private Function IsPrime(ByVal Number As Long) IsPrime = False Dim I As Long For I = LBound(Primes) To UBound(Primes) DoEvents Call UpdateStatus(Number, Primes(I)) If (Number Mod Primes(I) = 0) Then Exit Function If (Primes(I) >= Sqr(Number)) Then Exit For Next IsPrime = True End Function

Jan 06, 2009 | Microsoft Visual Basic 6.0 for PC

66 people viewed this question

Usually answered in minutes!

×