Se senão: Revision history

From Applied Science

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

20 January 2025

  • curprev 18:3518:35, 20 January 2025Wikiadmin talk contribs 3,132 bytes +3,132 Created page with "* '''Um algoritmo que testa se um número é par ou ímpar:''' <source lang="c"> int a; if (a % 2 == 0) printf("O numero %d eh par", a); else printf("O numero %d eh impar", a); </source> Bastante simples, apenas a parte de entrada de um valor pelo usuário foi omitida. É bastante intuitiva a noção de decisão em exemplos como este. * '''Uma variante do algoritmo acima mas com operadores AND e OR e mais ELSE IF:''' <source lang="c"> int a, b, c; if (a % 2..." Tag: wikieditor