Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char *argv[]) {
- float compra;
- printf("Entre com o valor total da compra\n");
- scanf("%f",compra);
- if(compra>100){
- compra=compra*0.9;
- printf("Preço com desconto: %d\n",compra);
- }
- else{
- printf("Não a desconto.");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement