Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- int M;
- int S;
- int A;
- int K =0;
- int G=0;
- int Y=0;
- int Sym=0;
- int F =0;
- int O=0;
- int H=0;
- int L =0;
- Scanner in =new Scanner(System.in);
- M=in.nextInt();
- S=in.nextInt();
- A=in.nextInt();
- K = M%10;
- G=S%10;
- Y=A%10;
- Sym= K+G+Y;
- System.out.println(Sym);
- H =M/10;
- O=S/10;
- F=A/10;
- L=H+O+F;
- System.out.println(L);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement