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
| using System; | |
| using System.Text; | |
| using System.Security.Cryptography; | |
| namespace MD5test | |
| { | |
| class MainClass | |
| { | |
| public static void Main(string[] args) | |
| { |
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
| n = int(input("quantos números? ")) | |
| lista = [] | |
| for i in 0..n | |
| lista.append(int(input())) | |
| a = 1 | |
| for i in lista | |
| a *= i | |
| print(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 encontraMenorMarcado(int** r, int v){ | |
| int i; | |
| int resp = -1, custo = -1; | |
| for(i = 0; i < v; i++){ | |
| if(r[i][2] == 1) continue; | |
| if(r[i][1] < custo || custo == -1){ | |
| resp = 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> | |
| int main(void){ | |
| int a = 2; | |
| int b = 3; | |
| float c = 3.25; | |
| float d = 210; | |
| char e = 'a'; | |
| char f = 'c'; |
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){ | |
| printf("Olá amiguinhos"); | |
| // Sejam bem vindos ao MPB0 | |
| 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> | |
| int** criaMatriz(int *alunos){ | |
| int i, j, valor,x; | |
| int** matriz; | |
| printf("Digite a quantidade de alunos:\n"); | |
| scanf("%d", alunos); | |
| // FILE *p=fopen("alunos.txt", "r+"); |
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
| // Estrutura básica da Linguagem C | |
| int main(void){ | |
| 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> | |
| int main(void){ | |
| int a; | |
| scanf ("%d", &a); | |
| printf ("%d", a); | |
| 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> | |
| int main(void){ | |
| int a; | |
| a = 2+2; | |
| printf("A soma de 2+2 é: %d", a); | |
| 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> | |
| int main(void){ | |
| printf("Ola OBI! \n") | |
| return 0; | |
| } |