This file contains 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
import java.util.*; | |
public class mediaIdade { | |
public static void main(String [] x) { | |
int idade,media, soma=0, qtdIdade=0, maiorIdade=0, i=0, qtdMaiorMedia=0; | |
Scanner leia = new Scanner(System.in); | |
System.out.print("\nDigite a idade:\n"); | |
idade = leia.nextInt(); | |
while ((idade>0) && (idade<200)){ |
This file contains 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
import java.util.*; | |
public class desafioMedia { | |
public static void main(String [] x) { | |
float numero, somaNum, media; | |
int i, contagem; | |
Scanner leia = new Scanner(System.in); | |
System.out.print ("\nBem vindo ao desafio das médias: \n"); | |
somaNum = 0; | |
for (i=1; i<6; i++) { | |
do{ |
This file contains 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
cl_crosshair_drawoutline "1" | |
cl_crosshair_dynamic_maxdist_splitratio "0.35" | |
cl_crosshair_dynamic_splitalpha_innermod "1" | |
cl_crosshair_dynamic_splitalpha_outermod "0.5" | |
cl_crosshair_dynamic_splitdist "7" | |
cl_crosshair_outlinethickness "1.000000" | |
cl_crosshairalpha "255" | |
cl_crosshaircolor "5" | |
cl_crosshaircolor_b "128" | |
cl_crosshaircolor_g "0" |
This file contains 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
/* | |
+---------+---------+---------+---------+--------+ | |
| | 0 | 1 | 2 | 3 | | |
+---------+---------+---------+---------+--------+ | |
| | Nota1 | Nota2 | Nota3 | Media | | |
+---------+---------+---------+---------+--------+ | |
| | Nota1 | Nota2 | Nota3 | Media | | |
+---------+---------+---------+---------+--------+ | |
| | Nota1 | Nota2 | Nota3 | Media | | |
+---------+---------+---------+---------+--------+ |
This file contains 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
/* | |
Faça um programa que leia 05 números | |
e armazene num vetor | |
*/ | |
import java.util.Scanner; | |
public class vetor01 { | |
public static void main(String args[]) { |
This file contains 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 times = ["Corinthians","Atlético-MG","Grêmio","Santos","São Paulo","Internacional","Sport","Palmeiras","Ponte Preta","Flamengo","Cruzeiro","Atlético-PR","Fluminense","Chapecoense","Figueirense","Havaí","Coritiba","Goias","Joinville","Vasco da Gama"]; | |
var pontos = [70,62,56,50,50,50,49,48,47,44,44,42,40,39,35,34,33,31,30,30]; | |
var menu = prompt("Digite 1 para ver a tabela do Brasileirao ou 2 para simular os próximos jogos ou digite 0 para sair."); | |
while ((menu > 0) && (menu<3)) { | |
switch (menu) { | |
case "1": | |
console.log("+----BRASILEIRAO 2015---+"); | |
for (i=0;i<times.length;i++) { |
This file contains 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
function teclaPermitida(event) { | |
if ((event.keyCode == 8) || (event.keyCode == 46) || (event.keyCode == 9) || (event.keyCode == 37) || (event.keyCode == 39) || (event.keyCode == 116) || (event.keyCode == 16) || (event.keyCode == 36)) { | |
return true; | |
} else { | |
return false; | |
} | |
} | |
function sonum(event) { | |
if (window.event) var event = window.event; |
This file contains 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
Function LZ(ByVal Number) | |
If Number < 10 Then | |
LZ = "0" & CStr(Number) | |
Else | |
LZ = CStr(Number) | |
End If | |
End Function | |
Function TimeStamp | |
Dim CurrTime |
This file contains 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(){ | |
//Declaração de Variáveis | |
int jogo; | |
char times[20][15] = {"Corinthians","Atlético-MG","Grêmio","Santos","São Paulo","Internacional","Sport","Palmeiras","Ponte Preta","Flamengo", | |
"Cruzeiro","Atlético-PR","Fluminense","Chapecoense","Figueirense","Havaí","Coritiba","Goias","Joinville","Vasco da Gama"}; | |
int pontos[20] = {70,62,56,50,50,50,49,48,47,44,44,42,40,39,35,34,33,31,30,30}; | |
int menu=0, opcao, realpos=0, i=0; | |
//Entrada de dados | |
while ((menu > 0) && (menu<3)) { |
This file contains 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(){ | |
//Declaração de Variáveis | |
int jogo; | |
char times[20][15] = {"Corinthians","Atlético-MG","Grêmio","Santos","São Paulo","Internacional","Sport","Palmeiras","Ponte Preta","Flamengo", | |
"Cruzeiro","Atlético-PR","Fluminense","Chapecoense","Figueirense","Havaí","Coritiba","Goias","Joinville","Vasco da Gama"}; | |
int pontos[20] = {70,62,56,50,50,50,49,48,47,44,44,42,40,39,35,34,33,31,30,30}; | |
int menu, opcao, realpos=0, i=0; | |
//Entrada de dados | |
printf("Digite a opção que você deseja\n(1-para mostrar a Tabela)\n(2-para simular): "); |
OlderNewer