简体   繁体   中英

How to write do not print in pseudocode?

I was thinking that it was NOT PRINT since NOT is a logical no. But I am not quite too sure. Can someone please help me?

IF first operand > second operand THEN
PRINT question
ELSE
IF first operand<= second operand THEN
NOT PRINT question

I was thinking it is something like that but again, I am not too sure.

If you want to write in pseudocode then just write in English:

if (first_operand > second_operand){
    print(question)
}
if (first_operand <= second_operand) {
    // if you're not printing the question, then state
    what you wish to print as argument.
    print(answer)
}

But it sounds like you haven't grasped the fundamentals of programming. I would suggest you get started with something like CodeSchool where there are videos on various programming paths.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM