answersLogoWhite

0

program SumAndDifference;

var

num1, num2, sum, difference: integer;

begin

write('Enter first number: ');

read(num1);

write('Enter second number: ');

read(num2);

sum := num1 + num2;

difference := num1 - num2;

if sum > difference then

written('The sum is greater: ', sum)

else

written('The difference is greater: ', difference);

end.

This program will prompt the user to enter two numbers, calculate their sum and difference, and then compare the two values. If the sum is greater than the difference, it will display the sum; otherwise, it will display the difference.

User Avatar

gabrielblair28

Lvl 3
2y ago

What else can I help you with?

Related Questions

What is the programming language used to display webpages?

What_is_the_language_used_for_creating_web_pages


Should you buy a macboook pro retina display or a Macbook Air for programming?

macboook pro retina display


How browser compile HTML code?

HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.HTML is not compiled. It is not a programming language. Code is parsed or rendered by the browser to display the page. It reads the tags and formats the page according to what the user wants.


What is the difference between display and performance?

display is something you see, however, performance is something you do.


What is difference in wxga display and led display?

led is a backlighting technology. wxga is a display resolution standard (1280x768 pixels).


What is the difference between a windshield with the hud display capabilities and windshields without it?

There is no difference as far as the glass is concerned! The glass has nothing to do with the heads up display.


Difference by the way vdu monitor and lcd monitor?

There is no difference. A LCD Monitor (Liquid Crystal Display) is a type of VDU (Visual Display Unit).


How do you display qBasic programming if their is no MS-DOS prompt?

If you are using windows, MSDOS shell is integrated by default..


What is the HTML code for placing a circle?

HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:HTML is not a programming language and it cannot do things like drawing circles. The only thing you can do is get a graphic with a circle in it and use the img tag to display the image on the page. An example might be:


Do bugs always result from programming error?

No,It might also be due to compiler errors which result in unnecessary display of errors


A good display tagline on orkut?

"ATTITUDE" makes the Difference and I HAVE IT!


What are the Difference between display and list commands?

display command help to display the single current record in a database where as list command helps to display all the current record which are present in a data base.