Advertisement
Yaroslavovich

Untitled

Oct 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package com.company;
  2. import java.util.Scanner;
  3.  
  4.  public class Main{
  5.  
  6.      public static void main(String []args) {
  7.          int  a, b, c;
  8.          Scanner in = new Scanner(System.in);
  9.          // типПеременной имяПеременой = new типПеременной();
  10.          a = in.nextInt();
  11.          b = in.nextInt();
  12.          c = in.nextInt();
  13.          System.out.print((a%100)-(a%10));
  14.          System.out.println("+"+(a%10));
  15.          System.out.print((b%100)-(b%10));
  16.          System.out.println("+"+(b%10));
  17.          System.out.print((c%100)-(c%10)) ;
  18.          System.out.println("+"+(c%10));
  19.      }
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement