View soma.c
#include <stdio.h>
int main()
{
int num1,num2,soma; //declaração de variáveis
printf("Digite o numero 1\n"); //printf para enviar mensagem na tela
scanf("%d", &num1); //scanf para associar o valor digitado à variável num1
View insertionSort.c
#include <stdio.h>
void insertS(int *V, int N){
int z,i,j,aux;
for(i=1;i<N;i++){
aux= V[i];
for(j=i;(j>0) && (aux<V[j-1]);j--)
View prova2msib.c
//
// main.c
// Prova
//
// Created by Pedro Clarindo da Silva Neto on 26/09/16.
// Copyright © 2016 Pedro Clarindo da Silva Neto. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
View prova2msia.c
//
// main.c
// Prova
//
// Created by Pedro Clarindo da Silva Neto on 26/09/16.
// Copyright © 2016 Pedro Clarindo da Silva Neto. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
View funcmaximo.c
#include <stdio.h>
int maximo (int x,int y, int z);
int main()
{
// printf("Hello, World!\n");
int num1,num2,num3;
printf("Digite 3 numeros\n");
scanf("%d%d%d",&num1,&num2,&num3);
View forencadeado.c
#include <stdio.h>
int main(){
int i;
int j;
int tab;
for(i=2;i<=10;i++){
printf("Tabuada do %d\n",i);
for(j=0;j<=10;j++){
tab = i * j;
printf("%d x %d = %d\n",i,j,tab);
View enquantoencadeado.c
#include <stdio.h>
int main(){
int i=2;
int j=0;
int tab;
while(i<=10){
printf("Tabuada do %d\n",i);
while(j<=10){
tab = i * j;
printf("%d x %d = %d\n",i,j,tab);
View forcalivrosimonmonk.py
import random
palavras = ['frango','cachorro','gato','rato','sapo']
vidas_restantes = 14
letras_advinhadas=''
def escolhe_palavra():
posicao_palavra = random.randint(0, len(palavras)-1)
return palavras[posicao_palavra]
def jogar():
View testeondewire18b20.ino
#include <OneWire.h>
#include <Arduino.h>
int SensorPin = 10;
OneWire ds(SensorPin);
void setup(void) {
Serial.begin(9600);
View cap13proj37sensoronewire.ino
// Project 37 - Part 1
#include <OneWire.h>
#include <DallasTemperature.h>
// Data line goes to digital pin 3
#define ONE_WIRE_BUS 3
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);