Baixe o app para aproveitar ainda mais
Prévia do material em texto
��������� � � �� � �� �� ���� � ������ ���� ���� ����� ���� � �� � �� � �� �� �������� � �� � �� �� �������� ���� � �� � �� �� �������� � �� � �� �� �������� �� ����� �� ���� ����� �� ���� �� ���� �� � � ������� ������ ���� � ������� ������ ��� ����� ����� �� ����� �� ����� ��� ��� ����� ������� ����� ������� !��"#�!��"#� ���"������� ������ ������"������� ������ ��� �� � �� � �� ����������� � �� ����$#�� �� � �� ����������� � �� ����$#� �� ��� �� ��� �� �� ��� � ����� � �� �� %&��� �� � ���'�%&��� �� � ���'� � �� � �� �� ��������� �� � �� �� ��������� �� � �� �� ��������� �� � �� �� �������� �� � �� � �� �� (� ���$#�� �� � �� �� (� ���$#� �� ��� �����$#� �� ��)������ �����$#� �� ��)��� �� ��� �����$#� �� ������ �����$#� �� ��� �� ��� ����������� �������� ��(����*�� � �+�� $#� �� � ���, ��� �� ������� �� (����*�� � �+�� $#� �� � ���, ��� �� ������� �� ������ ��� � ������ ��� � "���� �� �� �+ �� #�"���� �� �� �+ �� #��� �����"�� ��� ���"�� ��� ������� � �� +�������� � �� +� �� �+�� $#� �� � �� �+�� $#� �� � ������� �� ���� �� "����- "��������� � ��� �- �� ������� �� ���� �� "����- "��������� � ��� �- �� � �� � �� ����������� � �� ����$#�� �� � �� ����������� � �� ����$#�� �� � �� ����������� � �� ����$#�� �� � �� ����������� � �� ����$#� ������� �� ���� �� "����- "��������� � ��� �- �� ������� �� ���� �� "����- "��������� � ��� �- �� �� �+ �� #� �.����� �� �+ �� #� �.����� if if (<expressão>)(<expressão>) {{ if if (<expressão>)(<expressão>) {{ � �� � �� ����������� ��� �� � �� � �� ����������� ��� �� // ������� // ������� ifif � �� � �� ����������� ��� �� � �� � �� ����������� ��� �� // ������� // ������� ifif ��0� ���� ���� �- � � �� � �� 0� ���� ���� �- � � �� � �� ����������� �� �� ����������� �� �� � � � �� ���� ����+�/ � � � �� ���� ����+�/ {{ <comandos><comandos> }} {{ <comandos><comandos> }} �� if if (<expressão>) (<expressão>) {{ <comandos><comandos> if if (<expressão>) (<expressão>) {{ <comandos><comandos> � �� � �� ����������� ��� � ��� �� � �� ����������� ��� � �� // ������� // ������� ifif--elseelse � �� � �� ����������� ��� � ��� �� � �� ����������� ��� � �� // ������� // ������� ifif--elseelse ��0� ���� ���� �- � � �� � �� 0� ���� ���� �- � � �� � �� ����������� ����������� ��� � ����� � �� � � � �� ���� ����+�/ � � � �� ���� ����+�/ {{ <comandos><comandos> }} elseelse {{ <comandos><comandos> }} {{ <comandos><comandos> }} elseelse {{ <comandos><comandos> }} �� if (<expressão>) { if (<expressão>) { <comandos1> if (<expressão>) { if (<expressão>) { <comandos1> � �� � �� ����������� ��� � ��� �� � �� ����������� ��� � �� // ������� // ������� ifif--elseelse � �� � �� ����������� ��� � ��� �� � �� ����������� ��� � �� // ������� // ������� ifif--elseelse ��1 ���� ���� � �� � �� ����������� �� ���� �� 1 ���� ���� � �� � �� ����������� �� ���� �� ����� �� ������� �� � ��� � �� � �� ����������� - ����� �� ������� �� � ��� � �� � �� ����������� - �'����� �� � �� � �� �'����� �� � �� � �� ����'��� ����'��� � � ��������� ��������� // { <comandos1> } else { <comandos2> } } else { if (<expressão>) { <comandos3> } else { <comandos4> } } { <comandos1> } else { <comandos2> } } else { if (<expressão>) { <comandos3> } else { <comandos4> } } �2�� � �� � �� ����������� ��� � ��� �� � �� ����������� ��� � �� // ������� // ������� ifif--elseelse � �� � �� ����������� ��� � ��� �� � �� ����������� ��� � �� // ������� // ������� ifif--elseelse �� �����3�����/�����3�����/ �� ����� �� �'�"� - � ���� ���� � � ���� �� ����� �� �'�"� - � ���� ���� � � ���� � � elseelse �� �� �� &����� �� �� �� &����� ifif�� ����������- ��� 4 � � ��� �� $#� � ������ ���� ��������- ��� 4 � � ��� �� $#� � ������ ���� �� �,���- ����� �,���- ����� � �� ��"�� � ������� ���� ������ � �� ��"�� � ������� ���� ������ x = 2; if (x < 2) if (x >= -3) printf("\n x está entre [-3;1]"); else printf("x é maior que 1"); x = 2; if (x < 2) if (x >= -3) printf("\n x está entre [-3;1]"); else printf("x é maior que 1"); �5 x = 2; if (x < 2) { if (x >= -3) printf("\n x está entre [-3;1]"); } else printf("x é maior que 1"); x = 2; if (x < 2) { if (x >= -3) printf("\n x está entre [-3;1]"); } else printf("x é maior que 1"); ��6 � ������ ����7��� 6 � ������ ����7��� ?? � � � �� ���� ����+�/ � � � �� ���� ����+�/ Exp1Exp1 ? ? Exp2Exp2 : : Exp3;Exp3;Exp1Exp1 ? ? Exp2Exp2 : : Exp3;Exp3; 6 ������ �����������/ 6 ������ �����������/ ??6 ������ �����������/ 6 ������ �����������/ ?? �� Exp1Exp1 8 �"������/8 �"������/ �� �� ��� �� ��� "���������"���������- - Exp2Exp2 8 �"������ � ����� � � "���� �� 8 �"������ � ����� � � "���� �� �� �� $#���� �� $#�� �� �� ��� �� ��� ��� ���� �- - Exp3Exp3 8 �"������ � ����� � � "���� �� �� �� $#��8 �"������ � ����� � � "���� �� �� �� $#�� �9 6 ������ �����������/ 6 ������ �����������/ ??6 ������ �����������/ 6 ������ �����������/ ?? ���4 �"��� �� �� ���� �.���� �4 �"��� �� �� ���� �.���� ifif--elseelse// Exp1Exp1 ? ? Exp2Exp2 : : Exp3;Exp3;Exp1Exp1 ? ? Exp2Exp2 : : Exp3;Exp3; �: if if (Exp1)(Exp1) Exp2;Exp2; elseelse Exp3;Exp3; if if (Exp1)(Exp1) Exp2;Exp2; elseelse Exp3;Exp3; ����� ����� � �� �� "����� ��� ����� � �� �� "����� ;+- <=;+- <= ����� �� �� ����� � ���������� �� � ���� ��� �� �� ����� � ���������� �� � ���� �� ������ ���� ������������/����������/ �+���)����+���)����+���)����+���)��� �+�� ������������/����������/ �� � 4 ������� �� 4 �� ������� � ����- � � 4 ������� �� 4 �� ������� � ����- � �� � � �7 ���� � �� ��+� ����� ���� � � �7 ���� � �� ��+� ����� ���� switchswitch (<expressão_ou_valor>) (<expressão_ou_valor>) {{ casecase Constante1:Constante1: switchswitch (<expressão_ou_valor>) (<expressão_ou_valor>) {{ casecase Constante1:Constante1: � �� � �� ����������� �� %&��� �� � ���'�� �� � �� ����������� �� %&��� �� � ���'� // ������� // ������� switchswitch--casecase � �� � �� ����������� �� %&��� �� � ���'�� �� � �� ����������� �� %&��� �� � ���'� // ������� // ������� switchswitch--casecase ���� �� $#� �� ���$#� �� �&��� �� � ���'� �� �� $#� �� ���$#� �� �&��� �� � ���'� �������� �� ���� ���� �/�� ���� ���� �/ casecase Constante1:Constante1: <comandos1><comandos1> breakbreak;; casecase Constante2:Constante2: <comandos2><comandos2> breakbreak;; ...... defaultdefault:: <comandosN><comandosN> }} casecase Constante1:Constante1: <comandos1><comandos1> breakbreak;; casecase Constante2:Constante2: <comandos2><comandos2> breakbreak;; ...... defaultdefault:: <comandosN><comandosN> }} � �� � �� ����������� �� %&��� �� � ���'�� �� � �� ����������� �� %&��� �� � ���'� // ������� // ������� switchswitch--casecase � �� � �� ����������� �� %&��� �� � ���'�� �� � �� ����������� �� %&��� �� � ���'� // ������� // ������� switchswitch--casecase ��> ����������� �� �������> ����������� �� ������� switchswitch// �� ����� � � ����� � � �+ �� #��+ �� #� � � "����"������ �� �� � �,� �� �� � �� � �,� �� �� � ��� ��������� ������- ���#� �+�� �� - ���#� �+�� �� ??������� �������� �@ � "�� ��� � ����� �� @ � "�� ��� � ����� �� switchswitch�� �� � �,� �� � �,� ��� ��������� ������- ���#� �+�� �� ?- ���#� �+�� �� ?������� �������� �@ � @ � �A���A �� �� � �,� �� � �,� ��� ��������� ������- ���#� �+�� �� ?- ���#� �+�� �� ?������� �������� �@ � @ � "�� ��� � ����� �� "�� ��� � ����� �� switchswitch�� �� � �� �� �"���������� �� �� �"��������� �� �� � �#� �,� ���' �� �� ���������"� - "�� ��� � �� � �#� �,� ���' �� �� ���������"� - "�� ��� � defaultdefault-- �+�� �� ?�+�� �� ?������� 0������� 0@ � ������� � @ � ������� � switchswitch�� � �� � �� ����������� �� %&��� �� � ���'�� �� � �� ����������� �� %&��� �� � ���'� // ������� // ������� switchswitch--casecase � �� � �� ����������� �� %&��� �� � ���'�� �� � �� ����������� �� %&��� �� � ���'� // �������// ������� switchswitch--casecase ��6 ��B����� �� 6 ��B����� �� switchswitch ��"� �� ��"� �� intint � � charchar�� ��6 "���� � . � 6 "���� � . � casecase ��"�� �� �� ��"�� �� �� ��� �������� ����� ;�#� ;�#� ��� �� �� "���7"��=� ��� �� �� "���7"��=� �� �� �� $#� �� �� $#� // �C �� �� �� $#� �� �� $#� breakbreak// �� >�* ��� 4 � ������$� � >�* ��� 4 � ������$� � �)�� �������� �)�� �������� ��4 ��� � �� � �� ;�� ��4 ��� � �� � �� ;�� �� �- � ������� �� �- � ������� switchswitch=�=� �� � �+�� $#� �� ������� ������ � ��� � ������� �� �� $#� � �+�� $#� �� ������� ������ � ��� � ������� �� �� $#� �� �� �� � �� � ����� �� �� � �� � ��� �� � � � D���� ��* � �������� � �� �� �.+��� � � � D���� ��* � �������� � �� �� �.+��� casecase- � 4 � - � 4 � �#� 8 �� �,����#� 8 �� �,����� �+���)����+���)����+���)����+���)��� ��6 � �����7��� �� �� �� �� � ��������� � 6 � �����7��� �� �� �� �� � ��������� � � ����� �� ��7���/� ����� �� ��7���/ �� E8����� / 9�FE8����� / 9�F �� !������ / 2�F!������ / 2�F �� ����� / ��F����� / ��F �+�� �� ����� / ��F����� / ��F ��� ���"�� � ������� 4 � ������ ���� � ���"�� � ������� 4 � ������ ���� ������� � ��7��� �� �� � � ����� �� � �����7���- ������� � ��7��� �� �� � � ����� �� � �����7���- � � �� ���� � ��"� ��7��� � . � � ������� � �� ���� � ��"� ��7��� � . � � ������ whilewhile (<condição>)(<condição>)whilewhile (<condição>)(<condição>) (� ���$#� �� �����$#� �� ��)���(� ���$#� �� �����$#� �� ��)��� // ������� // ������� whilewhile (� ���$#� �� �����$#� �� ��)���(� ���$#� �� �����$#� �� ��)��� // ������� // ������� whilewhile ��������� 4 � � ����� ����'� �� ������� �,� ������� 4 � � ����� ����'� �� ������� �,� �+�� ���� �+�� ���� �01G�0E6�01G�0E6 �� ����� �����$#� ��� �� ����� �����$#� ��� "����������"���������� whilewhile (<condição>)(<condição>) {{ <comandos_a_repetir><comandos_a_repetir> }} <comandos_após_laço_while><comandos_após_laço_while> whilewhile (<condição>)(<condição>) {{ <comandos_a_repetir><comandos_a_repetir> }} <comandos_após_laço_while><comandos_após_laço_while> ��> �����������/> �����������/ ����E� ��� � �����$#��E� ��� � �����$#�� ������ � �����$#� ��� �� � �����$#� ��� ��� ���� �- ���#� ��� �� ��$��- ���#� ��� �� ��$�� 2�2��� � �����$#� ��� �� � �����$#� ��� "���������"���������- ���#� �+�� ��� ���� - ���#� �+�� ��� ���� � �� ������� �� �������� �� ��$�� � �� ������� �� �������� �� ��$�� (� ���$#� �� �����$#� �� ��)���(� ���$#� �� �����$#� �� ��)��� // ������� // ������� whilewhile (� ���$#� �� �����$#� �� ��)���(� ���$#� �� �����$#� �� ��)��� // ������� // ������� whilewhile � �� ������� �� �������� �� ��$�� � �� ������� �� �������� �� ��$�� 5�5�� . �+�� ��� � &����� ������� �� ��$� � . �+�� ��� � &����� ������� �� ��$� H'���H'���- "����� - "����� �� � � �� � � ���� ��6 6 whilewhile ��"� �� ��� �� �� 4 �/��"� �� ��� �� �� 4 �/ �� 0#� � ����� �+�������� 4 ���� "�*� � ��$� 0#� � ����� �+�������� 4 ���� "�*� � ��$� ��"� �� �� �������"� �� �� ����� �� 6 �� �� ��"� �� ����� ���� �� ������� � �+�� $#� �� 6 �� �� ��"� �� ����� ���� �� ������� � �+�� $#� �� � ����� �� ������� � ����� �� ������� �� I� "�� �� � �� 4 � � ��$� �#� ��"� �� �� ����� I� "�� �� � �� 4 � � ��$� �#� ��"� �� �� ����� (� ���$#� �� �����$#� �� ��)���(� ���$#� �� �����$#� �� ��)��� // ������� // ������� whilewhile (� ���$#� �� �����$#� �� ��)���(� ���$#� �� �����$#� �� ��)��� // ������� // ������� whilewhile �� I� "�� �� � �� 4 � � ��$� �#� ��"� �� �� ����� I� "�� �� � �� 4 � � ��$� �#� ��"� �� �� ����� ���' �� "�* ���� �� �� �� �� �����$#����' �� "�* ���� �� �� �� �� �����$#� ������$#�/����$#�/ �� � "���7"�� ��� �� �� �� ��"�� �� � "���7"�� ��� �� �� �� ��"�� �� ��������*��� ��������*��� ���� �� �� ������� �� �� ��� �J dodododo (� ���$#� �� �����$#� �� ���(� ���$#� �� �����$#� �� ��� // ������� // ������� dodo--whilewhile (� ���$#� �� �����$#� �� ���(� ���$#� �� �����$#� �� ��� // ������� // ������� dodo--whilewhile ��������� 4 � � ����� ����'� �� ������� �,� ������� 4 � � ����� ����'� �� ������� �,� �+�� ���� �+�� ���� �EK 1G��EK 1G� �� ����� �����$#� ���+� �� ����� �����$#� ���+� �� �� "���������/�� �� "���������/ dodo {{ <comandos_a_repetir><comandos_a_repetir> } } whilewhile (<condição>);(<condição>); <comandos_após_laço_do<comandos_após_laço_do--while>while> dodo {{ <comandos_a_repetir><comandos_a_repetir> } } whilewhile (<condição>);(<condição>); <comandos_após_laço_do<comandos_após_laço_do--while>while> (� ���$#� �� �����$#� �� ���(� ���$#� �� �����$#� �� ��� // ������� // ������� dodo--whilewhile (� ���$#� �� �����$#� �� ���(� ���$#� �� �����$#� �� ��� // ������� // ������� dodo--whilewhile ��> �����������/> �����������/ �����+�� ��� � ������� ������ �� ����� �+�� ��� � ������� ������ �� ����� dodo--whilewhile�� ����E� ��� � �����$#��E� ��� � �����$#�� 2�2��� � �����$#� ��� �� � �����$#� ��� ��� ���� �- ���#� ��� �� ��$��- ���#� ��� �� ��$�� 5�5��� � �����$#� ��� �� � �����$#� ��� "���������"���������- ���#� �������� ��� � - ���#� �������� ��� � � � � � � ��� ��6 ������� 6 ������� dodo--whilewhile ��"� �� ��� �� �� ��"� �� ��� �� �� 4 �/4 �/ �� 0#� � ����� �+��������0#� � ����� �+�������� 4 ���� "�*� � ��$� 4 ���� "�*� � ��$� ��"� �� �� �������"� �� �� ����� (� ���$#� �� �����$#� �� ���(� ���$#� �� �����$#� �� ��� // ������� // ������� dodo--whilewhile (� ���$#� �� �����$#� �� ���(� ���$#� �� �����$#� �� ��� // ������� // ������� dodo--whilewhile �� 6 �� �� ��"� �� ����� 6 �� �� ��"� �� ����� �� �� �� �+�� $#��� �� �� �+�� $#� �� � �� � ����� �� ������� ����� �� ������� �� 6 ����� �� ������� ��"� � 6 ����� �� ������� ��"� � �+�� ���� ��� ���� �+�� ���� ��� ���� �� "�* �� "�* 2� ����� � �&���� � "�������� � � �� 8 � �#� � ��� � �&���� � "�������� � � �� 8 � �#� � �&���� ������&���� ����� ������ �� ���� �� �)"��� �� �� ��� ���� �)"��� �� �� ��� ���� 4 � ��� �� � 4 � ��� �� � �+�2 �+���)��� �+���)��� �+���)��� �+���)��� ������ �� ���� �� �)"��� �� �� ��� ���� �)"��� �� �� ��� ���� 4 � ��� �� � 4 � ��� �� � , �� �� , �� �� �-9F �� �D �-9F �� �D � �� � �� � ����$#� �� ��9�� � ����$#� �� ��9�� ���� ���� ��� ���������� �� ��� ���������� �� 5F �� �D 5F �� �D - � ���"�� - � ���"�� � ��������� 4 � ��������� � � ���� �� � ��������� 4 � ��������� � � ���� �� �� � ���� 7��� ��� ���� � �)"������ � ���� 7��� ��� ���� � �)"���� �+�5 forfor (comandos_inic; condição_teste; incre/decremento)(comandos_inic; condição_teste; incre/decremento)forfor (comandos_inic; condição_teste; incre/decremento)(comandos_inic; condição_teste; incre/decremento) (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ��������� 4 � � ����� ����'� �� ������� �,� ������� 4 � � ����� ����'� �� ������� �,� �+�� ���� � �+�� ���� � �&���� ����������� �� "�*� �&���� ����������� �� "�*� �� forfor (comandos_inic; condição_teste; incre/decremento)(comandos_inic; condição_teste; incre/decremento) {{ <comandos_a_repetir><comandos_a_repetir> }} <comandos_após_laço_for>;<comandos_após_laço_for>; forfor (comandos_inic; condição_teste; incre/decremento)(comandos_inic; condição_teste; incre/decremento) {{ <comandos_a_repetir><comandos_a_repetir> }} <comandos_após_laço_for>;<comandos_após_laço_for>; (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ��> �����������/> �����������/ �����+�� ��� � ������� �� ��������*�$#���+�� ��� � ������� �� ��������*�$#�� ����E� ��� � �����$#��E� ��� � �����$#�� 2�2��� � �����$#� ��� �� � �����$#� ��� ��� ���� � ���#� ��� �� ��$� ���#� ��� �� ��$� forfor�� (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#��� ��������(� ���$#� �� �������� // ������� // ������� forfor 5�5��� � �����$#� ��� �� � �����$#� ��� "���������"��������� ���#� �+�� ��� � ���#� �+�� ��� � ������� 4 � � �#� ��������� �� ������� 4 � � �#� ��������� �� forfor�� 9�9��+�� ��� � ������� �� ����������L������������+�� ��� � ������� �� ����������L����������� :�:�M����� �� M����� �� � � � � � ��� (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ��6� ��"�$N� /6� ��"�$N� / �� 6 ������� �� 6 ������� �� ��������*�$#���������*�$#� #� �+�� ���� #� �+�� ���� � ��� � ��� �� "�* �� "�*�� �� 6 �������� 8 ������������L������������ �� �� �� 6 �������� 8 ������������L������������ �� �� �� �� 6 �������� 8 ������������L������������ �� �� �� 6 �������� 8 ������������L������������ �� �� �� ����� �� �+�� $#������ �� �+�� $#� �� �������� ������ �� 6 �� �� 8 ����� �� �� 6 �� �� 8 ����� �� �� ���� �� ��)������� �� ��)��� �� �+�� $#� �� �� �+�� $#� �� ����� �� ������� ������ �� ������� � (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ��6 ������� 6 ������� forfor ��"� �� ��� �� �� 4 �/��"� �� ��� �� �� 4 �/ �� �� ����� �� ����� �+�������� 4 ���� "�*� �+�������� 4 ���� "�*� � ��$� ��"� � ��$� ��"� �� �� ������ �� �� ������ �� 6 �� �� ��"� �� ����� 6 �� �� ��"� �� ����� ���� ���� �� �+�� $#� �� � ����� �� �+�� $#� �� � ����� 2� �� 6 �� �� ��"� �� ����� 6 �� �� ��"� �� ����� ���� ���� �� �+�� $#� �� � ����� �� �+�� $#� �� � ����� �� ������� ��� ������� � �� I� "�� �� � �� 4 � � ��$� I� "�� �� � �� 4 � � ��$� �#� ��"��#� ��"� �� �� ����� �� �� ����� ���' �� "�*���' �� "�*�� (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ��>��+��������� �� �������>��+��������� �� ������� forfor �� �� ���' �� ��������*�$#� 8 ���� 7���- �� ���' �� ��������*�$#� 8 ���� 7���- comandos_iniccomandos_inic ��� �� �������� ��� �� �������� 2� forfor ( ; condição_teste; incre/decremento)( ; condição_teste; incre/decremento)forfor ( ; condição_teste; incre/decremento)( ; condição_teste; incre/decremento) (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ��>��+��������� �� �������>��+��������� �� ������� forfor �� �� �� condição_testecondição_teste 8 �������- � ������� 8 �������- � ������� forfor ��� ����� �� � ��$� ��������� ��� ����� �� � ��$� ��������� 22 forfor (comandos_inic; ; incre/decremento)(comandos_inic; ; incre/decremento)forfor (comandos_inic; ; incre/decremento)(comandos_inic; ; incre/decremento) (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ��>��+��������� �� �������>��+��������� �� ������� forfor �� �� �� incre/decrementoincre/decremento8 �������- ��"�8 �������- ��"��� �- �� ���*�� �- �� ���*�� � "���7"�� �� ��$� �� � ������� ������ �� ��$��� "���7"�� �� ��$� �� � ������� ������ �� ��$�� 25 forfor (comandos_inic; condição_teste; )(comandos_inic; condição_teste; )forfor (comandos_inic; condição_teste; )(comandos_inic; condição_teste; ) (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ��>��+��������� �� �������>��+��������� �� ������� forfor �� � � � ��� "���7"�� ; � ����� �� ")�� ��= � � � ��� "���7"�� ; � ����� �� ")�� ��= ���� �� ��������*��� �L� �����L������������ ���� �� ��������*��� �L� �����L������������ �� �� �� �� ��� ��� �� ��� ��� 29 (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ��������� ������� forfor ����'��� ����'��� �� G� ������� G� ������� forfor ��� �� ����*��� ������ �� � ��� ��� �� ����*��� ������ �� � ��� ������� ������� forfor�� �� � ����� ��"�� �� ������ ��� �#� � ������ � � ����� ��"�� �� ������ ��� �#� � ������ � ��� � �� �+�� $#� �� ������������� � �� �+�� $#� �� ������������� � �� �+�� $#� �� ������������� � �� �+�� $#� �� ���������� (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ������ ��������� ����� �� ���� �� �����/���� �� �����/ ******************** ********** ******************** ****************** ******** **** ******** **** **************** ****** *** ****** *** 2:� 2:� 2:� ****************** ******** **** ******** **** **************** ****** *** ****** *** ************** **** ** **** ** ************ ** * ** * ********** ** * ** * ******** **** ** **** ** ****** ****** *** ****** *** **** ******** **** ******** **** ** ********** ******************** (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ���7�� �� �� 8��� �7�� �� �� 8��� �������������� � ����� ���������������� � ����� ������ �������������� "���� ������� �� ������������������� "���� ������� �� ��������� 2�2����������� "���� ����� �� ������������������ "���� ����� �� ���������� 2 2 46 2 48 2 50 2 2532 ++++= �S �+�9 (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor (� ���$#� �� ��������(� ���$#� �� �������� // ������� // ������� forfor ���+���)��� �+���)��� �������� ��� � "���� �� �/���� ��� � "���� �� �/ �+�: 3 333 32,7 1 5 1 3 11 ×=+−+−= SS pi� 2464850 �������� ��� � "���� �� ���� ��� � "���� �� ��� ��� ���� #� �� �-���:: 1 � �N� 1 � �N� 1 � �N� 1 � �N�
Compartilhar