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> | |
| #include <locale.h> | |
| int main(){ | |
| setlocale(LC_ALL,"portuguese"); | |
| //definir variaveis | |
| int vetorA[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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <locale.h> | |
| int main(){ | |
| setlocale(LC_ALL,"portuguese"); | |
| //definir variaveis | |
| int matriz[2][4]; |
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> | |
| #include <locale.h> | |
| int main(){ | |
| setlocale(LC_ALL,"portuguese"); | |
| //definir variaveis | |
| int num; | |
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> | |
| struct produto | |
| { | |
| int codigo; | |
| char descricao[50]; | |
| float preco; | |
| int saldo; | |
| }; | |
| int main (){ |
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(void) { | |
| int anoAtual = 2018; | |
| int anoNascimento = 0; | |
| int idade = 0; | |
| printf("Digite o ano do seu nascimento: "); | |
| scanf("%d", &anoNascimento); | |
| idade = anoAtual - anoNascimento; | |
| printf ("Sua idade é %d\n", idade); | |
| 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> | |
| #include <string.h> | |
| #include <locale.h> | |
| #define TAM 5 | |
| typedef struct pessoa{ | |
| char nome[50]; | |
| char telefone[20]; | |
| int 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
| #include <stdio.h> | |
| #include<stdlib.h> | |
| int main(void) { | |
| //funcao somadigitos declarada | |
| float somadedigitos(float n1, float n2); | |
| float a,b, soma; | |
| printf("Digite 2 numeros: "); | |
| 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(void){ | |
| void mostrar(int matriz[2][2]); | |
| int matriz[2][2]{3,5,9,2}; | |
| mostrar(matriz); | |
| system("pause"); | |
| 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
| package exercicio; | |
| import java.util.Locale; | |
| import java.util.Scanner; | |
| public class CalcularArea { | |
| public static void main(String[] args) { | |
| // TODO Auto-generated method stub | |
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
| package exercicio01; | |
| import java.util.Locale; | |
| import java.util.Scanner; | |
| public class Ex03 { | |
| public static void main(String[] args) { | |
| // TODO Auto-generated method stub | |
| Locale.setDefault(Locale.US); |
OlderNewer