18.08.2013 Views

Dalla A alla Z passando per C - Robotica

Dalla A alla Z passando per C - Robotica

Dalla A alla Z passando per C - Robotica

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

while ( espr ) istr<br />

Un esempio di utilizzo del costrutto while è il seguente:<br />

#include <br />

int main()<br />

{<br />

long i = 1, max;<br />

double somma = 0.0;<br />

}<br />

printf("numero di iterazioni: ");<br />

scanf("%ld", &max);<br />

while (i oppure >= piuttosto che < invece di<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!