answersLogoWhite

0

What is the code for creating a menu on pascal?

Updated: 10/18/2022
User Avatar

Olivearrow

Lvl 1
10y ago

Best Answer

Well if you want to create a menu, you may use CASE.

This is the program

program Menu;

var menu:integer;

begin

writeln('Menu');

writeln('1. XXXXXXX');

writeln('2. XXXXXXX'); {unlimited option you want}

writeln; {just to make it pretty :)}

write('Mode you want to choose');

readln(menu);

CASE menu OF

1: {program if I choose 1 from the menu};

2: {program if I choose 2 from the menu};

end; {end of case}

readln;

end.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the code for creating a menu on pascal?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Code for creating pascal's triangle in C programming language?

code for creating pascal's triangle in C programming language?


What are the two steps in creating a menu?

what is the source code for browse in vb.net


How do you run VB in Microsoft Excel?

You can do it by creating macros and then editing the macros. The macros or set of code can be applied to a button. It will depend on the version of Excel you have, but you can usually start creating macros or writing code through the Tools menu.


What were two mathematicians that blaise pascal was in contact with?

Pierre Gassendi and Clyde Mydorge were two mathematicians that Blaise Pascal stayed in contact with. Their services were especially important when Pascal was in the process of creating the adding machine.


How do you get the secret code menu on need for speed undercover for ps2?

there is no secret code menu for the PS2 version.


Where is the ATV off road fury cheat code menu?

The menu for cheat code entery on ATV Off Road Furry 2 is in the options menu on the main title. (main menu.)


What is a context menu?

A context menu is a menu on a user interface (typically a GUI), such as the right-click function in computing. The context menu offers a range of options, such as creating folders, for example.


Make a pascal using c plus plus?

Please make your question more clear. Qhat do you want to do? Rewrite the programming language Pascal? Convert c++ code to Pascal? Create a Pascal triangle? Make a baby son that's called Pascal? (btw, that last thing has to be done in hardware)


Where is cheat code menu in NFS carbon ps2?

just type it on the main menu


What is a file menu?

The File menu provides options for working with Files created by an application such as creating a new file or naming and saving a file.


Why do you think McDonald's succeeded?

McDonald's was able to adjust to the market. They created a value menu that outpaced Wendy's value menu by creating value items.


How do you get to the chaets menu in nfs carbon?

There isn't one... Go to the main menu (the one after the title screen) enter the code at the main menu.