tim003 tim003
/
LV1-PAI-Grupa2-Tim003-Zadatak2
Granulo Eldar Ljubuncic Orhan
Diff: main.cpp
- Revision:
- 1:1db0fc3a4657
- Parent:
- 0:1648f2f2da6f
--- a/main.cpp Mon Mar 03 10:23:37 2014 +0000 +++ b/main.cpp Mon Mar 03 10:32:23 2014 +0000 @@ -5,7 +5,7 @@ int main() { - float on = 1; + float on = 1.0; while(1) { @@ -15,7 +15,7 @@ myled = 0; wait(on); myled = 1; - wait(2-on); + wait(2.0-on); on+=0.03; } @@ -24,7 +24,7 @@ myled = 0; wait(on); myled = 1; - wait(2-on); + wait(2.0-on); on-=0.03; } @@ -33,7 +33,7 @@ myled = 0; wait(on); myled = 1; - wait(2-on); + wait(2.0-on); on+=0.03; }