Author Topic: algo. a program.  (Read 2964 times)

revan

  • Newbie
  • *
  • Posts: 2
    • View Profile
algo. a program.
« on: 29.11.2012, 04:36:48 »
cawte potrebujem pomoc s zadanim sidlo 2


Priklad znie: Zostavte program pre výpočet hodnôt funkcie
z=(0,5x+3,2/x)/(y+1) pre x  <0,1.5> s krokom 0.5 a y  <0,2> s krokom
1. Výsledky x, y, z tlačte v tabuľke.

Agamemnon

  • Hero Member
  • *****
  • Posts: 2942
  • Per aspera ad Astra
    • View Profile
Re: algo. a program.
« Reply #1 on: 29.11.2012, 05:08:40 »
Code: [Select]
for (x from 0 to 1.5 step 0.5)
  for (y from 0 to 2 step 1)

    z = (0.5*x + 3.2/x ...)
    print x + " | " + y + " | " + z

  end for
end for
All code is crap.

42