This file contains hidden or 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
| /* Escreva um programa leia tres n ́ | |
| umeros e imprime em ordem (ordem | |
| decrescente). */ | |
| #include <stdio.h> | |
| main() { | |
| float num1, num2, num3; |
This file contains hidden or 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> | |
| #include <stdlib.h> | |
| main () { | |
| int produto, pais; | |
| float peso, peso_g = 0, preco = 0, preco_final = 0, imposto = 0, imposto_valor=0; | |
| printf("Digite o codigo do produto: \n"); | |
| scanf("%d", &produto); |
This file contains hidden or 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
| // Exec 02 | |
| #include <stdio.h> | |
| int main() { | |
| int n, valor, maior; | |
| printf("Quantidade de valores a serem lidos: \n"); | |
| scanf("%d", &n); | |
| for ( int i = 0, maior = 0; i < n; i++ ) { |
This file contains hidden or 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
| // Nome: Leon Nardella RA: 1581708 | |
| // | |
| // Disciplina: IF61B - Algoritmos | |
| // Aula - 16 | |
| // Exec07 | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
This file contains hidden or 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> | |
| #include <stdlib.h> | |
| void limpar() | |
| { | |
| #ifdef _WIN32 | |
| system("cls"); | |
| #else | |
| system("clear"); |
This file contains hidden or 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
| //Exec07 | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| void limpar() | |
| { | |
| #ifdef _WIN32 | |
| system("cls"); |
This file contains hidden or 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
| // Faça um prorgrama que leia o valor X, calcule e mostre o resultado da seguinte sequência. | |
| #include <stdio.h> | |
| int main() { | |
| int t, x, s = 0; | |
| printf("Digite o valor de x: \n"); | |
| scanf("%d", &x); | |
This file contains hidden or 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
| // Faça um programa que gere uma sequência de X, dadas as quantidades de linhas e colunas | |
| #include <stdio.h> | |
| int main() { | |
| int linhas, colunas; | |
| printf("Digite o numero de linhas\n"); | |
| scanf("%d", &linhas); | |
This file contains hidden or 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
| // Elabore um programa que pede seu nome, endereço, CEP e telefone. Ele deve imprimir seu | |
| // nome na primeira linha, seu endereço na segunda, e o CEP e telefone na terceira. | |
| #include <stdio.h> | |
| main() { | |
| char nome[50], | |
| endereco[200], | |
| cep[10], | |
| telefone[10]; |
This file contains hidden or 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
| \begin{equation} | |
| x = a_0 + \cfrac{1}{a_1 | |
| + \cfrac{1}{a_2 | |
| + \cfrac{1}{a_3 + \cfrac{1}{a_4} } } } | |
| \end{equation} |
OlderNewer