# Trabalho Algoritimo - Eric Nogueira.txt - EXERCICIO 1...

• 2

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 2 out of 2 pages.

EXERCICIO 1#include <conio.h>#include <stdio.h>main(){float base, altura, area;printf("Qual a base do triangulo:");scanf("%f",&base);printf("Qual a altura do triangulo:");scanf("%f",&altura);area = (base*altura)/2;printf("A area do triangulo e de: %1.1f",area);getch();}EXERCICIO 2#include <conio.h>#include <stdio.h>main (){char nome[60] ;float precofabrica, precofinal, imposto ;printf ("Qual o nome do automovel: ");scanf ("%s", &nome) ;printf ("Qual o preco de fabrica: ");scanf ("%f", &precofabrica);imposto = precofabrica *(0.45 + 0.28);precofinal = precofabrica + imposto;printf ("Automovel: %s\n", nome);printf ("Preco de venda: %10.2f\n", precofinal);getch();}EXERCICIO 3#include <conio.h>#include <stdio.h>main(){float custofixo, precoconvite, vendaconvite;printf("Qual o custo do espetaculo:");scanf("%f",&custofixo);printf("Qual o preco dos convites:");scanf("%f",&precoconvite);vendaconvite = (custofixo/precoconvite);
End of preview. Want to read all 2 pages?

Course Hero member to access this document

Term
Spring
Professor
Flavio Vaz
Tags
scanf