Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --print("How much HvSolars do you have?")
- --a = read()
- a=10
- x=1
- hv=12500
- t=0
- tt1=0
- tt2=0
- tt3=1
- wert=0
- tt1=1000000/512/20/x*hv
- t=t+tt1
- x=x+1
- function calculate2()
- while x<a do
- tt1=1000000/512/20/x*hv
- tt2=tt1-30
- tt3=tt2/tt1
- x=x+1
- wert=1000000/512/20*tt3/x*hv
- t=t+wert+tt1
- end
- end
- function chegcalculate2fortt3()
- if tt3>0 do
- calculate2
- else
- print("Ab "..x.." ist tt3 kleiner als 0")
- stop=1
- end
- end
- stop=0
- while stop=0 do
- chegcalculate2fortt3
- end
- print (""..t.." sec")
- tinm=t/60
- print (""..tinm.." min")
- tinh=tinm/60
- print (""..tinh.." h")
- tind=tinh/24
- print (""..tind.." d")
Advertisement
Add Comment
Please, Sign In to add comment