Escolar Documentos
Profissional Documentos
Cultura Documentos
#include <stdio.h>
#include <stdlib.h>
int main()
{
int op, x, l;
int vet[10];
char st[100];
do {
printf("\n");
printf(" -------------\n");
printf("|AMANDA - 4211|\n");
printf(" -------------\n");
if (op == 1)
{
for (x = 0; x < 10; x++) {
printf("Digite o %i valor:\n", x + 1);
scanf("%i", &vet[x]);}
printf("Numeros guardados\n");
}
else if (op == 2)
{
printf("Digite uma frase de ate 100 caracteres:\n");
fflush(stdin);
gets(st);
}
else if (op == 3)
{
printf("A frase que voce digitou foi: %s\n", st);
printf("Os numeros digitados foram:\n", x );
for (x = 0; x < 10; x++) {
printf("%i ", vet[x]);}
printf("\n");
}
else if (op== 4)
{
printf("Digite o numero limite:\n");
scanf("%d", &l);
printf("Valores dentro do limite %d: ", l);
for (x = 0; x < 10; x++) {
if (vet[x] <= l) {
printf("%i ", vet[x]);}}
}
else if (op == 5)
}
else if (op == 6)
}
else if (op == 7)
}
else if (op == 8)
}
else if (op == 9)
{
}
else if (op == 10)
{
printf("Programa Encerrado");