Paises
1.PIDE 5 NOTAS Y LAS IMPRIME#include<stdio.h>
int main()
{
int i;
float notas [4];
printf("ingrese las 5 notas");
for(i=0; i<=4; i++)
{
scanf("%f", ¬as[i]);
}for(i=0; i<=4; i++)
{
printf("\nelemento %d es %.2f",i,notas[i]);
}
getchar ();
getchar ();
return 0;
}
2. SUMA 5 NOTAS Y LASIMPRIME
#include<stdio.h>
int main()
{
int i;
float notas [4],suma=0;
printf("ingrese las 5 notas");
for(i=0; i<=4; i++)
{
do{
scanf("%f",¬as[i]);
}while((notas[i]<0)||(notas[i]>10));
}
for(i=0; i<=4; i++)
{
suma=suma+notas[i];
printf("\nelemento %d es%.2f",i,notas[i]);
}
printf("\n\n La suma de las 5 notas es---------> : %.2f",suma);
getchar ();
getchar ();
return 0;
}
3. LEE 5 NOTAS LASSUMA Y SAXCA EL PROMEDIO DE LAS 5
#include<stdio.h>
int main()
{
int i;
float notas [4],suma=0, promedio;
printf("ingrese las 5 notas");
for(i=0; i<=4; i++)
{do{
scanf("%f", ¬as[i]);
}while((notas[i]<0)||(notas[i]>10));
}
for(i=0; i<=4; i++)
{
suma=suma+notas[i];promedio= suma/5;
printf("\nelemento %d es %.2f",i,notas[i]);
}
printf("\n\n La suma de las 5 notas es---------> : %.2f",suma);printf("\n\n El promedio de las 5 notas es---------> : %.2f",promedio);
getchar ();
getchar ();
return 0;
}
4. PIDE EL SALARIO DE 4 EMPLEADOS, CALCULA RENTA, AFP, ISSS Y IMPRIME...
Regístrate para leer el documento completo.