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 um valor N inteiro e positivo, calcule e mostre o valor de E, conforme a fórmula a seguir: | |
E = 1 + 1/1! + ½! + 1/3! + ... + 1/N! */ | |
import java.util.Scanner; | |
class Main { | |
public static void main(String[] args) { | |
int numero; | |
double r = 0, fatorial; |
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(void) { | |
int Escolha; | |
Retorno: | |
printf("\n"); | |
Menu(); | |
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 um número N e que indique quantos valores inteiros e positivos devem ser lidos a seguir. | |
// Para cada número lido, mostre uma tabela contendo o valor lido e o fatorial desse valor. | |
import java.util.Scanner; | |
class Main { | |
public static void main(String[] args) { | |
int n; | |
int fatorial = 1; | |
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.Scanner; | |
class Main { | |
public static void main(String[] args) { | |
double porcentagem = 0.015; | |
double salario = 1000; | |
for(int i = 2005; i <= 2017; 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
/* | |
Uma empresa possui dez funcionários com as seguintes características: código, número de horas trabalhadas no | |
mês, turno de trabalho (M – Matutino, V – Vespertino ou N – Noturno), categoria (O – Operário ou G – Gerente), valor | |
da hora trabalhada. Sabendo-se que essa empresa deseja informatizar sua folha de pagamento, faça um programa | |
que: | |
a) leia as informações dos funcionários, exceto o valor da hora trabalhada, não permitindo que sejam informados | |
turnos nem categoria inexistentes. Trabalhe sempre com a digitação de letras maiúsculas; | |
b) calcule o valor da hora trabalhada, conforme a tabela a seguir. Adote o valor de R$ 450,00 para o salário mínimo. | |
Categoria Turno Valor da hora trabalhada | |
G N 18% do salário mínimo |
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 preencha um vetor de nove elementos numéricos inteiros, calcule e mostre os números | |
// PARES e suas respectivas posições. | |
import java.util.Random; | |
class Main { | |
public static void main(String[] agrs) { | |
int vetor[] = new int[9]; | |
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.Scanner; | |
class Main { | |
public static void main(String[] args) { | |
double monthlySalary = 400; | |
double unitaryValue[] = new double[10]; | |
int amountSold[] = new int[10]; | |
int max = amountSold[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
#!/usr/bin/python2.7 | |
# -*- coding: utf-8 -*- | |
import requests | |
from bs4 import BeautifulSoup | |
UUIDS = open('uuids.txt', 'r') | |
for UUID in UUIDS : |
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.Scanner; | |
/** | |
* | |
* @author Fabio | |
*/ | |
public class Reservas { | |
/** | |
* @param args the command line arguments |
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
# pip install pwntools | |
from pwn import * | |
r = remote('localhost', 25) | |
r.recvline() | |
r.sendline("EHLO test") | |
r.recvuntil("250 HELP") | |
r.sendline("MAIL FROM:<test@localhost>") | |
r.recvline() |
OlderNewer