Pseudo code Standard

October 5, 2010 at 19:46:25
Specs: Windows Vista
Can you guys help?
I'm not sure how to display the larger value or how to make it analyze both values for the zero. I wrote the defining diagram but could you guys help with the program? If you have any advice, please contact me at <removed>@yahoo.com or <removed again>@hotmail.com.It wrote it really rough. Thanks a bunch.

Write a program to repeatedly accept two numbers and display the larger one. If either number is a zero, an error message will be displayed and the program will end.

Num1: integer
Num2: integer

START
Write (enter first value: )
Accept num1
Write (enter second value: )
Accept num2
If num1 =0; num2 =0
Then write ERROR!!
Else display larger number
END

edited by moderator: Removed email addresses -Razor2.3


See More: Pseudo code Standard

Report •


#1
October 7, 2010 at 06:30:48
What do you have so far?
What have you tried?
What happens in your attempts?

How To Ask Questions The Smart Way


Report •

#2
October 7, 2010 at 19:55:47
program error;

uses
WinCrt;

{This program will accept two values
and display the larger one}

var num1:integer;
num2:integer;

begin

write('Enter First Value');
read(num1);
writeln('Enter Second Value');
readln(num2);

if
num1:=0,num2:=0
then
writeln('ERROR!!')
else


Report •

#3
October 8, 2010 at 04:11:20
how do I get it to display the larger number in the program? Is there a function for that or something?

Report •

Related Solutions

#4
October 8, 2010 at 05:28:14
Sure; just use the greater than / less than symbols.

How To Ask Questions The Smart Way


Report •


Ask Question