Skip to content

Instantly share code, notes, and snippets.


parzibyte/calcular_aumento.c Secret

Created Nov 13, 2020
What would you like to do?
#include <stdio.h>
int main()
float precioOriginal, porcentajeAumento;
printf("Ingresa el precio original: ");
scanf("%f", &precioOriginal);
printf("Ingresa el porcentaje de aumento: ");
scanf("%f", &porcentajeAumento);
float aumento = precioOriginal * (porcentajeAumento / 100);
float precioConAumento = precioOriginal + aumento;
printf("Precio con aumento: %0.2f", precioConAumento);
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.