Jump to content

Probleme Programare Pentru Incepatori Pascal/c


Recommended Posts

Am inceput sa fac cate ceva marunt. Din ce am inteles in primu semestru o sa fac Pascal si in al doilea C.


Am urmatoarele probleme.


In pascal daca puteti pascal sau pseudocod.


1) Cum fac sa se afiseze valoarea maxima sau minima dintre 2 sau mai multe numere reale? Daca sunt putine nr e usor sa pun conditii pt fiecare dar daca sunt 100-1000 de nr ar fi ineficient sa pun conditii pt fiecare.

Link to comment
Share on other sites

nush cum e in pascal. in C ai vectori

z:array [1..30] of integer     cred ca asa e in pascal.

z[1] e prima variabila... z[2] a 2a.. si asa mai departe



ca sa le parcurgi, folosesti un for


for < variable-name > := < initial_value > to [down to] < final_value > do



de ex, 

for i:= 1 to 10 do writeln(z);



incearca sa inveti care e faza cu for si while.. sa te obisnuiesti cu ele.

love is a verb
Love is a doing word

Link to comment
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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.