Question about The Computers & Internet

1 Answer

What is the flowchart for five prime numbers?

Posted by on

Ad

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    Top Expert:

    An expert who has finished #1 on the weekly Top 10 Fixya Experts Leaderboard.

    Superstar:

    An expert that got 20 achievements.

    All-Star:

    An expert that got 10 achievements.

  • The Master
  • 8,302 Answers
Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi there,
Save hours of searching online or wasting money on unnecessary repairs by talking to a 6YA Expert who can help you resolve this 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.

Here's a link to this great service

Good luck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Draw a flowchart to accept two numbers and any one of the following characters: +, -, *, or /. Based on the character entered,


Draw a flowchart to accept two numbers and any one of the following characters: +, -, *, or /. Based on the character entered,

Nov 25, 2013 | Cagiva Raptor 1000 Motorcycles

2 Answers

Flowchart that will display the positive or negative number


input a number and check whether the number is positive or negative?

Jun 28, 2012 | Global Marketing Partners FLOWCHARTS AND...

1 Answer

@yahoo.comcreate a flowchart that will increase the value of the number by 5 if it is greater than 10 and display thae result. otherwise multiply the value by 5 and display the result


create a flowchart that will increase the value of the number by 5 if it is greater than 10 and display the result. otherwise multiply the value by 5 and display the result.

Jun 23, 2011 | Audio Players & Recorders

1 Answer

Create a flowchart that will print the sum of all even numbers from 1-100


create a flowchart that will print the sum of all even numbers from 1 to 100

Jul 09, 2010 | Activision Video Game Consoles & Games

3 Answers

Write algorithm that displays the first N numbers in Fibonacci


Try this site, I think it gives you the best answer:

http://www.scribd.com/doc/10396888/Flowchart-of-Fibonacci-Number-Display-and-Summation

Feb 14, 2010 | Global Marketing Partners FLOWCHARTS AND...

1 Answer

Need code


Try the Following Five Programs

1) Program for Prime Number Generation

#include <stdio.h>
main()
{
int n,i=1,j,c;
clrscr();
printf("Enter Number Of Terms
");
printf("Prime Numbers Are Follwing
");
scanf("%d",&n);
while(i<=n)
{
c=0;
for(j=1;j<=i;j++)
{
if(i%j==0)
c++;
}
if(c==2)
printf("%d ",i)
i++;
}
getch();
}
--------------------------------------------------------------------------------------------------------------------------------------------------

2)Program for finding the prime numbers

#include <stdio.h>
#include <conio.h>
void main()
{
int n,m,k,i,max;
char c;
clrscr();
repeat: max=0;
k=2;
n=1;
printf("You want prime numbers upto:- ");
scanf("%d",&max);
printf("

");
for (i=1;i<=max;i++)
{
again: m=(n/k)*k;
if (m!=n)
k=k+1;
else
goto try1;
if (k < n/2)
goto again;
else
printf("%d",n);
printf(" ");
try1: n=n+1;
k=2;
}
fflush(stdin);
printf ("

Do you want to continue?(y/n):- ");
scanf("%c",&c);
if (c=='y')
goto repeat;
getch();

}
---------------------------------------------------------------------------------------------------------------------------------------------------

3)
  1. #include <stdio.h>
  2. int main(void) {
  3. int n,
  4. lcv,
  5. flag; /* flag initially is 1 and becomes 0 if we determine that n
  6. is not a prime */
  7. printf("Enter value of N > ");
  8. scanf("%d", &n);
  9. for (lcv=2, flag=1; lcv <= (n / 2); lcv++) {
  10. if ((n % lcv) == 0) {
  11. if (flag)
  12. printf("The non-trivial factors of %d are: \n", n);
  13. flag = 0;
  14. printf("\t%d\n", lcv);
  15. }
  16. }
  17. if (flag)
  18. printf("%d is prime\n", n);
  19. }
---------------------------------------------------------------------------------------------------------------------------------------------------

4)

#include<stdio.h>

#include<conio.h>

void main()

{

int n,i,c=0;

clrscr();

printf("enter the number:");

scanf("%d",&n);

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

{

if(n%i==0)

{

c=c+1;

}

}

if(c==2)

printf("number is prime");

else

printf("number is not prime");

getch();

}
-------------------------------------------------------------------------

5)
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the number:");
scanf("%d",&a);
for(b=2;b<a/2;b++)
{
if(n%i==0)
{
printf("\n Its not a Prime number");
c=1;
break;
}
if(flag==0)
printf("\n Its a Prime Number");
getch();
}
}


Sep 02, 2008 | Computers & Internet

1 Answer

Flowcharting


Input FirstNumber
Input SecondNumber
Sum= FirstNumber + SecondNumber
If FirstNumber > SecondNumber
Diff=FirstNumber-SecondNumber
Else
Diff=SecondNumber - FirstNumber
END IF
Product = FirstNumber * SecondNumber

Jul 07, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

52 people viewed this question

Ask a Question

Usually answered in minutes!

Top The Computers & Internet Experts

Perry Ralston

Level 1 Expert

17 Answers

ashu k...........

Level 1 Expert

33 Answers

ted dux

Level 2 Expert

135 Answers

Are you a The Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...