Teste
Orientação Impressão
Orientações da aula 10/04/2013
Lista de Exercícios
de algoritmos condicionais.
_____________________________________________________________ Soluções dos exercícios 10 a 14. _____________________________________________________________ Exercício 10 (opção 1): agrto"enm" loim smoe vr a vlr,ao2vlr,ao4vlr,ao6cn:itio ao1vlr,ao3vlr,ao5vlr,ot ner pr:ra ec el iii nco Ecea (Dgt 6vlrs " srvl "iie aoe: ) Li (ao1vlr,ao3vlr,ao5vlr) ea vlr,ao2vlr,ao4vlr,ao6 cn < 0 ot S (ao1>0 e(ao12< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao2>0 e(ao22< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao3>0 e(ao32< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao4>0 e(ao42< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao5>0 e(ao52< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao6>0 e(ao62< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is pr < (ot6 *10 ec - cn/) 0 Ecea(ec"%dsnmrssopstvsíprs) srvlpr, o úeo ã oiio mae" fmloim iagrto _____________________________________________________________ Exercício 10 (opção 2): agrto"enm" loim smoe vr a vlrcn:itio ao,ot ner pr:ra ec el iii nco cn < 0 ot Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na https://ucsvirtual.ucs.br/globalAva/2/20132INF0200AA/cronograma/6/orientacao/imprimir/ 1/4
10/04/13
Orientação Impressão
cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na