Jump to content
Demonek_

Pascal - Pomoc, Prosty Program

Recommended Posts

Potrzebuje pomocy, gdyż mam do napisania banalny programik, mianowicie po wpisaniu cyfry, np. 4 - program wyswietla ocenę tj. DOBRY w tym wypadku. Wszystko byłoby banalne, gdyby nie sam fakt, że potrzebuje zrobić to na odwrót, tzn. ja podaje słownie ocene, a program wyswietla ją cyfrą.

W pierwszy wypadku jest to banał:

 

program bleble;

uses crt;

var ocena:integer;

clrscr;

begin

writeln('Podaj ocene - cyfra');readln(ocena);

writeln;

if ocena=1 then writeln('niedostateczny');

 

ITD. ETC.

 

readkey;

end.

 

 

Tylko pytanie jak zrobić to na odwrót? Jaka zmienna przechowuje słowa?

Szukałem w google, probowwałem ale nic mi nie wychodzi.

Edited by Demonek_

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...