LoginSignup
0
0

More than 1 year has passed since last update.

[paiza]スキルチェック見本問題 Java 掛け算/足し算(paizaランク D 相当)

Last updated at Posted at 2021-09-06

初めに

ここまでのJavaの学習でpaizaラーニングにある
スキルチェック見本問題の掛け算、足し算が解けるようになりました。

掛け算 (paizaランク D 相当)

見本問題なので問題の公開、コードの公開は問題ないそうです。

解答コード

import java.util.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num1 = sc.nextInt();
        int num2 = sc.nextInt();
        System.out.println(num1*num2);
    }
}

足し算 (paizaランク D 相当)

import java.util.*;


public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ!!
        Scanner sc = new Scanner(System.in);
        int num1 = sc.nextInt();
        int num2 = sc.nextInt();
        System.out.println(num1+num2);
    }
}

おわり

随時勉強を進めていき、スキルチェックのランクを上げていきたいです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0