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
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
computer scince
write a c++program by using if statement to read a number and check whether it is positive or negative
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
To write pseudo code effectively, start by clearly defining the problem and breaking it down into smaller steps. Use simple language and logical structure to outline the algorithm without worrying about syntax. Make sure to include comments to explain the purpose of each step and test your pseudo code to ensure it accurately solves the problem.