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 j, aux; | |
float i; | |
for(i = 0; i < 2.2; i += 0.2) { | |
for(j = 1; j <= 3; j++) { | |
aux = i; | |
if ((i - (int)aux ) == 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 entrada; | |
while(scanf("%d", &entrada) != EOF) { | |
if (entrada) { | |
printf("vai ter duas!\n"); | |
} else { |
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 i, j, linha; | |
float entrada, sum; | |
char operacao; | |
scanf("%d", &linha); |
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 i, j, linha, diagonal, tam = 0;; | |
float entrada, sum; | |
char operacao; | |
scanf("%c", &operacao); | |
getchar(); |
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 entrada; | |
while(scanf("%d", &entrada) != EOF) { | |
if (entrada) { | |
printf("vai ter duas!\n"); | |
} else { |
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 <string.h> | |
int findChar(char *frase, char character); | |
int main(void) { | |
char palavra[51]; | |
int endereco; |
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
Então, eu vou apresentar domingo o conceito do mobile first. | |
O que é o mobile first? | |
É o ato de criar o sites primeiramente para dispositivos mais limitados como: | |
1) Celulares, | |
2) Tablets | |
Antigamente existiam apenas palmtops, que eram dispositivos muito limitados, telas monocromaticas e tamanhos bem definidos, por isso o CSS2 e o HTML4 não introduziam o conceito que a gente vai ver aqui. |
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
def sub(a, b): | |
if a > b: | |
return sub(a-b, b) | |
return a-b | |
print(sub(30, 5)) |
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
# -*- coding: utf-8 -*- | |
code = { | |
'A': 1, 'B': 2, 'C': 3, 'D': 4, 'E': 5, 'F': 6, 'G': 7, 'H': 8, | |
'I': 9, 'J': 10, 'K': 11, 'L': 12, 'M': 13, 'N': 14, 'O': 15, 'P': 16, | |
'Q': 17, 'R': 18, 'S': 19, 'T': 20, 'U': 21, 'V': 22, 'W': 23, | |
'X': 24, 'Y': 25, 'Z': 26 | |
} | |
names = [ |
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
var nome = "Joffily"; | |
var nome2 = " Ferreira"; | |
var resultado = ""; | |
var frase = "Eu, quero, ser, dividia e, colocada, em, uma, array"; | |
var frase_delimitada = "Essa frase vai ser mostrada apenas do caractere de posição 10 até o final "; | |
// Concat (concatena duas strings e coloca dentro de outra); | |
resultado = resultado.concat(nome, nome2); | |
console.log("Resultado do concat: " + resultado); |