Begin
Read num
for(i=2; i<num; i++)
if(num%2==0) then
print "the number is not a prime no.";
else if
print "the number is prime";
end if
Stop
PROGRAM prime_check;
VAR n, i, s : integer;
flag : boolean;
BEGIN
writeln('Enter any number');
readln(n);
flag := false;
s := trunc(sqrt(n*1.0));
FOR i := 2 TO s DO
IF ((n MOD i)=0) THEN
flag:=false
ELSE
flag:=true;
IF flag=true THEN writeln('It is a Prime number')
ELSE
writeln('Not a prime number');
END.
Pseudo code+factorial
5
input number print number + 1
write pseudocode for link list
Write a C program to Draw a RAINBOW and fill the suitable colors ...
Pseudo code+factorial
5
input number print number + 1
You are going about this backwards. First, define the program. Second, describe its algorithm. Third, if needed, write pseudo code. (Sometime, algorithm and pseudo code is the same process.) Fourth, or third, write real code.
It doesn't. Pseudo code isn't a programming language, it is just there to give an idea of how you could write a program.
Start accept 7 number calculate sum print sum stop
write a c++program by using if statement to read a number and check whether it is positive or negative
computer scince
You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.
it is very suitable that
write pseudocode for link list
how to write the pseudo code for : (5/9)(f-32)