Mudanças entre as edições de "PRG29002-2015-2-Aval1A"
Ir para navegação
Ir para pesquisar
Linha 1: | Linha 1: | ||
[[Professores:FGHIJ | FGHIJ]] | [[Professores:FGHIJ | FGHIJ]] | ||
+ | |||
+ | Nome:_____________________________________________ | ||
Questão 1 | Questão 1 | ||
<syntaxhighlight lang=c> | <syntaxhighlight lang=c> | ||
− | |||
#include <stdio.h> | #include <stdio.h> | ||
Linha 14: | Linha 15: | ||
y=6; | y=6; | ||
y=y%x; | y=y%x; | ||
− | z = ( ( x- | + | z = ( ( x-1 || y>5 ) && !0 ) * 10; |
printf ("z=%d\n",z); | printf ("z=%d\n",z); | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | Z = ______ |
Edição das 22h21min de 17 de novembro de 2015
Nome:_____________________________________________
Questão 1
#include <stdio.h>
main ()
{
int x,y,z;
x=2;
y=6;
y=y%x;
z = ( ( x-1 || y>5 ) && !0 ) * 10;
printf ("z=%d\n",z);
}
Z = ______