Jump to content

Probleme Programare Pentru Incepatori Pascal/c


Recommended Posts

Posted

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.

Posted

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

S;

 

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • 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.