answersLogoWhite

0


Best Answer

1. Accept the 2 numbers 2. Add the 2 numbers
3. Compare answer with 5
4. If answer is greater than 5 subtract with 5 else give a error message.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a pseudocode for a program that accepts two integers and substract 5 from the answer?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Develop an algorithm to display all prime numbers from 2 to 100 Give both the pseudocode version and the flowchart version Convert your pseudocode into a Java program?

Develop an algorithm to display all prime numbers from 2 to 100. Give both the pseudocode version and the flowchart version. Convert your pseudocode into a Java program.


What is an English-like statement used to describe the logic of a program?

Pseudocode.


What has the author T E Bailey written?

T. E. Bailey has written: 'Program design with pseudocode' -- subject(s): Programming, Electronic digital computers, Electronic digitalcomputer, Pseudocode (Computer program language)


How do you write a pseudocode program for finding out x to the power of y?

X**y


Pseudocode could be logically incorrect if not properly indented?

The indentation doesn't affect the "logic" of the program, however it would make it make harder to read and the purpose of pseudocode is to be read.


Could Pseudocode could be logically incorrect if not properly indented.?

The indentation doesn't affect the "logic" of the program, however it would make it make harder to read and the purpose of pseudocode is to be read.


Which microprocessor accepts the program written for 8086 without any changes?

Which microprocessor accepts the program written for 8086 without any changes?


Display a pseudocode for a calculator program?

firstly try yourself then ask others or browse internet websites etc


How do you write the semicolon symbol in a pseudocode logic program delaing with classes?

Any of these: PRINT semicolon EMIT ; WRITE ";" etc.


Is pseudocode a combination of programming language and machine code?

No. Pseudocode is not used to write complete programs; rather, it is an overview of what you want to achieve. For example, the following pseudocode is for a program to print a list of square roots: for i = 1 to 10 show i, i*i A specific programming language may not have a "show" command, and the structure of the "for" loop might be different; additional setup and cleanup commands may also be required in a real computer program; the purpose of this pseudoce is merely to explain, to a human, what you want to achieve. The real code, with more detail, will have to be added later.


Create a program which accepts a number not less than 10The program prints the reverse of the number?

ten


What drug treatmeant program accepts medi-caid in Florida?

gfgyhgcfh