in Education by
Write an algorithm and draw a flowchart to print prime numbers from 1 to 50 Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Few prime number are − 1, 2, 3, 5 , 7, 11 etc. Algorithm. Algorithm of this program is very easy − START Step 1 → Take integer variable A Step 2 → Divide the variable A with (A-1 to 2) Step 3 → If A is divisible by any value (A-1 to 2) it is not prime Step 4 → Else it is prime STOp

Related questions

0 votes
    write algorithm and flowchart the inputs two numbers swaps these values without using third variable Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Write an algorithm and flowchart to find perimeter of rectangle and psuedocode of it’s Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    operating system is a program with subroutine it differences B provided liya user-friendly interface C enables the ... the above Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    Write a program to generate first 20 terms of Fibonacci series and store them in single dimension array. Display ... from the array Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    2.Flowchart is diagrammatic representation of O Data types O Memory Locations O Algorithm O Keywords Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    write an algorithm to accept an integer number and print the factors of it Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    2 Write an algorithm to input two numbers and find their sum and difference Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    write an alogithum to find out simple interest . Flowchart Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    (1) write the uses of colour pallet in Corel draw software?? (2) write the uses of clone command?? tomorrow ... guys of this question . Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    write a program in python to obtain 3 numbers and print their sum. Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Write the following in while(): For (i=1;i =100;i++){Print( %d \ ,i);} (Will no one be able to solve ... as i am doing an exam now) Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    Write a python program to print first n(entered by user) even natural numbers. Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    Write a program in Java to print all palindromic numbers between 150-250. Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    Write an algorithm to accept radius of a circle from user, and display area of the circle using the formula: area ... x radius x radius Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
...