Aprendendo a Programar Programando em Linguagem C - FSM
Aprendendo a Programar Programando em Linguagem C - FSM
Aprendendo a Programar Programando em Linguagem C - FSM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
}<br />
Celsius = 5.0*(Fahrenheit - 32)/9;<br />
printf("\t %.2f \t | \t %.2f \n", Fahrenheit, Celsius);<br />
}<br />
Cabe observar que a sequência de comandos cuja execução se pretende repetir pode ser colocada na<br />
área dos incr<strong>em</strong>entos. O programa acima ficaria então com a seguinte forma:<br />
#include <br />
#include <br />
main()<br />
{<br />
float Celsius, Fahrenheit;<br />
clrscr();<br />
printf("Tabela de conversão graus Fahrenheit/graus Celsius \n");<br />
printf("-------------------------------------------------\n");<br />
printf("\t Fahrenheit \t | \t Celsius\n");<br />
printf("-------------------------------------------------\n");<br />
for (Fahrenheit = 20; Fahrenheit