!-- inicio configuracao do Syntax Highlighting -->

domingo, 30 de junho de 2013

Ler uma temperatura em graus Celsius e apresenta-la convertida em graus Fahrenheit. A fórmula de conversão é: F=(*C+160)/5, sendo F a temperatura em Fahrenheit e C a temperatura em Celsius.

Ler uma temperatura em graus Celsius e apresenta-la convertida em graus Fahrenheit. A fórmula de conversão é: F=(*C+160)/5, sendo F a temperatura em Fahrenheit e C a temperatura em Celsius. English Read a temperature in degrees Celsius and displays it converted to degrees Fahrenheit. The conversion formula is: F = (160 * C) / 5, where F temperature in Fahrenheit and Celsius temperature C. #include #include main() { float gc; printf("Digite a Temperatura em Graus Celcius = "); scanf("%f",&gc); printf("A Temperatura...

sábado, 29 de junho de 2013

Faça um algoritmo que receba dois números e ao final mostre a soma, subtração, multiplicação e a divisão dos números lidos.

Faça um algoritmo que receba dois números e ao final mostre a soma, subtração, multiplicação e a divisão dos números lidos. English Write an algorithm that receives two numbers and the end shows the addition, subtraction, multiplication and division of numbers read. #include #include main() { float num1,num2; printf("Digite Dois Numeros :\n"); scanf("%f%f",&num1,&num2); printf("%.1f + %.1f = %.1f\n",num1,num2,num1+num2); printf("%.1f - %.1f = %.1f\n",num1,num2,num1-num2); printf("%.1f * %.1f...

Utilizando funções registros, crie um programa que leia nome e idade de cinco alunos. Exiba o nome do aluno mais velho e a idade do aluno mais novo.

Utilizando funcoes e registros, crie um programa que leia nome e idade de cinco alunos. Exiba o nome do aluno mais velho e a idade do aluno mais novo. English Using functions and records, create a program that reads the name and age of five students. Display the name of the oldest student and the age of the younger student. #include #include #include /* */ struct TAluno{ char nome [45]; int idade; }; TAluno lerAluno(){ TAluno r; //preencher r; printf("======== Novo Aluno =========\n"); printf("nome:"); ...

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More