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> | |
| int main() { | |
| char str[] = "meu string"; /*reserva espaço para 11 caracteres*/ | |
| /* Vou alterar o caracter da sexta posição do vetor str[] */ | |
| str[5] = 'd'; | |
| printf("Ou seja troquei o t pelo d na frase: meu string -> %s ",str); | |
| return 0; | |
| } |
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> | |
| /* | |
| F=1,8C + 32 | |
| */ | |
| void main() { | |
| float soma=0; | |
| int valorInicial, valorFinal, contador; | |
| printf("Digite o valor da temperatura inicial: \n"); |
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> | |
| int main () { | |
| float notas[10]; | |
| int indice; | |
| printf("Lendo as notas:\n"); | |
| for (indice = 0; indice < 10; indice++) | |
| { |
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 main() { | |
| float nota, soma = 0, media; | |
| int resp, contador = 0; | |
| do { | |
| printf("Digita a nota: "); | |
| scanf("%f", ¬a); |
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> | |
| int main () { | |
| /* declaracoes */ | |
| int num; /* variavel utilizada para leitura da sequencia */ | |
| int quad; | |
| /* programa */ | |
| printf("Digite uma sequencia terminada por zero\n"); |
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> | |
| /* | |
| F=1,8C + 32 | |
| */ | |
| void main() { | |
| float soma=0; | |
| int valorInicial, valorFinal, contador; | |
| printf("Digite o valor da temperatura inicial: \n"); |
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 main() { | |
| float nota, soma=0, media; | |
| int conta; | |
| for (conta = 0; conta <= 9; conta++) { | |
| printf("Digite a nota: "); | |
| scanf("%f", ¬a); |
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
| void main() { | |
| float salario; | |
| char temFilhos; | |
| printf("Digite o salario atual do funcionario: "); | |
| scanf("%f", &salario); | |
| printf("\nVoce possui Filhos? Digite 'S' ou 'N': "); | |
| scanf(" %c", &temFilhos); |
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> | |
| int main(void) { | |
| // declaração de variáveis | |
| int contador; | |
| float nota1, nota2, nota3, media; | |
| for (contador = 0; contador < 3; contador ++) { | |
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<math.h> | |
| int main() | |
| { | |
| int numero; | |
| printf("Entre com um numero inteiro: "); | |
| scanf("%d",&numero); | |
| if (((numero % 3)==0) && ((numero % 5)==0)){ |