segunda-feira, 26 de junho de 2017

Estou de Volta !

     
 

    Olá pessoal estou voltando a postar códigos,apostilas, exercícios, etc. Agora estarei postando sobre varias linguagens de programação (to estudando algumas), bom se vc tem alguma sugestão de conteúdo, apostilas, exercícios e etc, para ser postado ou estudado com mais foco nesse blogger fala ai nos comentários.
valeu galera !


se vc ta se perguntado que imagem é essa que coloquei, bom é a "logo" de um sistema que estou desenvolvendo, logo mais estarei postando parte do código dele aqui.
obs.(vai demorar um pouco estou  apenas 70% do código concluído)

URI PROBLEMA: 1007 - Diferença - JAVA

import java.io.IOException;
import java.util.Scanner;
public class Main {

    public static void main(String[] args) throws IOException {
      Scanner scan =new Scanner(System.in);
            int A, B, C, D, diferenca;
             A = scan.nextInt();
             B = scan.nextInt();
             C = scan.nextInt();
             D = scan.nextInt();
             diferenca = (A*B)-(C*D);
      System.out.println("DIFERENCA = " + diferenca);

    }

}

URI PROBLEMA: 1006 - Média 2 java

import java.io.IOException;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws IOException {
    Scanner scan = new Scanner(System.in);
    double a = scan.nextDouble();
    double b = scan.nextDouble();
    double C = scan.nextDouble();

    double x = a*2;
    double y = b*3;
    double z = C*5;

    double fim = (x+y+z)/10;

        System.out.printf("MEDIA = %.1f%n", fim);
        scan.close();
    }

}

URI PROBLEMA: 1005 - Média 1- JAVA

import java.io.IOException;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws IOException {
    Scanner scan = new Scanner(System.in);
    double a = scan.nextDouble();
    double b = scan.nextDouble();
    double x = a*3.5;
    double y = b*7.5;
    double z = (x+y)/11;

        System.out.printf("MEDIA = %.5f%n", z);
        scan.close();
    }

}

URI 1002 - Área do Círculo - java

import java.io.IOException;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws IOException {
    Scanner scan = new Scanner(System.in);
    double a = scan.nextDouble();
    double b = 3.14159 * Math.pow(a, 2);

        System.out.printf("A=%.4f%n" , b);
        scan.close();
    }

}

URI PROBLEMA: 1004 - Produto Simples - java

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;

public class Main {

    public static void main(String[] args) throws IOException {
        int a = 0, b = 0;

        InputStreamReader ir = new InputStreamReader(System.in);
        BufferedReader in = new BufferedReader(ir);

        a = Integer.parseInt(in.readLine());
        b = Integer.parseInt(in.readLine());

        System.out.println("PROD = " + (a * b));
    }

}

URI PROBLEMA: 1003 - Soma Simples - Java

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;

public class Main {

    public static void main(String[] args) throws IOException {
        int a = 0, b = 0;

        InputStreamReader ir = new InputStreamReader(System.in);
        BufferedReader in = new BufferedReader(ir);

        a = Integer.parseInt(in.readLine());
        b = Integer.parseInt(in.readLine());

        System.out.println("SOMA = " + (a + b));
    }

}

1001 - Extremamente Básico em java

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
/**
 * IMPORTANT:
 *      O nome da classe deve ser "Main" para que a sua solução execute
 *      Class name must be "Main" for your solution to execute
 *      El nombre de la clase debe ser "Main" para que su solución ejecutar
 */
public class Main {

    public static void main(String[] args) throws IOException {
        int a = 0, b = 0;

        InputStreamReader ir = new InputStreamReader(System.in);
        BufferedReader in = new BufferedReader(ir);

        a = Integer.parseInt(in.readLine());
        b = Integer.parseInt(in.readLine());

        System.out.println("X = " + (a + b));
    }

}
Postagens mais recentes Postagens mais antigas Página inicial