Pseudocode is typically only used to describe the solutions to large problems. It is used to make complex things simple. If part of your pseudocode included telling someone to add two numbers, you would simply write: num1 + num2
#include<stdio.h>
#include<conio.h>
int main(void)
{
int sum=0,n,i;
clrscr();
printf("\n Enter two no.");
scanf("%d %d",&n,&i);
sum=n+i;
printf("\n%d+%d=%d,n,i,sum);
getch();
return 0;
}
First i want to say that you can not write pseudo code for an application, because pseudo code cannot be an application.
Pseudo code is not a fixed standard, but it could be like this:
function AddTwoNumbers(number1, number2) {
return number1 + number2
}
Have a good day! RandomGeek
Input number a
Input operator '+', '-' or '/'
Input number b
If operator = '+' return a + b
Else if operator = '-' return a - b
Else if operator = '/' return a / b
The above assumes infix notation. If using prefix notation, input the operator first and for postfix, input the operator last.
BEGIN
input num 1,num 2
sum = num 1 + num 2
diplay total
END
1. input x as float
2. input y as float
3. input op as character
4. if op<>'+' and op<>'-' then goto 3
pseudo code algorithm to create a linked list
Pseudo code+factorial
write pseudocode for link list
5
Pseudo code cannot be processed by a machine, it is solely intended for processing by humans.
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.
pseudo code algorithm to create a linked list
computer scince
Pseudo code+factorial
loop i from 0 to num check if num mod i equals 0breakelsesum = sum + numend the loopprint the sum
write pseudocode for link list
how to write the pseudo code for : (5/9)(f-32)
A pseudo city code is a short code of numbers and letters used by global distribution systems, or GDS, to identify different travel agency offices. The code 9NC1V is not registered in any public database as being an active code.
5
Something like this: sum = 0 for i = 2 to 20 step 2 { sum = sum + i }
Pseudo code cannot be processed by a machine, it is solely intended for processing by humans.