Prog DEV C++
#include <stdio.h>
int main() {
int num, i, maior;
for (i=1;i<=3; i++) {
printf("Informe o %dº número: ", i);
scanf("%d", &num);
if (i == 1)
maior = num;
else
if (maior < num)
}
printf("Maior: %d\n", maior);
return 0;
Em pascal esse..
Program Maior;
var
a,b,c: integer;
Begin
writeln ('Informe 3 valores inteiros:');
readln (a,b,c);
if (a>b) and (a>c) then
writeln ('O maior é: ',a);
if (b>a) and (b>c) then
writeln ('O maior é: ',b);
if (c>a) and (c>b) then
writeln ('O maior é: ',c);
End.
Olá amigo,
Aqui estar o seu pedido, você poderá baixar um relatório com algumas informações, dicas e o arquivo do seu pedido.
http://driverssemptoshiba.blogspot.com.br/p/pagina...
Tudo de Bom e boa Sorte!
Copyright © 2024 QUIZLS.COM - All rights reserved.
Answers & Comments
Verified answer
#include <stdio.h>
int main() {
int num, i, maior;
for (i=1;i<=3; i++) {
printf("Informe o %dº número: ", i);
scanf("%d", &num);
if (i == 1)
maior = num;
else
if (maior < num)
maior = num;
}
printf("Maior: %d\n", maior);
return 0;
}
Em pascal esse..
Program Maior;
var
a,b,c: integer;
Begin
writeln ('Informe 3 valores inteiros:');
readln (a,b,c);
if (a>b) and (a>c) then
writeln ('O maior é: ',a);
if (b>a) and (b>c) then
writeln ('O maior é: ',b);
if (c>a) and (c>b) then
writeln ('O maior é: ',c);
End.
Olá amigo,
Aqui estar o seu pedido, você poderá baixar um relatório com algumas informações, dicas e o arquivo do seu pedido.
http://driverssemptoshiba.blogspot.com.br/p/pagina...
Tudo de Bom e boa Sorte!