-
-
Save parzibyte/a4bb9507a855ef5b1f411bb0cbccb540 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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