-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.java
More file actions
37 lines (28 loc) · 797 Bytes
/
test.java
File metadata and controls
37 lines (28 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import java.util.Scanner;
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input=new Scanner(System.in);
int a=input.nextInt();
int b=input.nextInt();
int sum1=0;
for(int i=0;i<=b;i++)
{
int n1=a/10;
int n3=a%10;
int n2=b/10;
int n4=b%10;
int n5=n1+n3;
int n6=n2+n4;
for(int j=n1;j<n3;j++)
{
for(int k=n2;k<=n4;k++)
{
sum1=j+k;
}
System.out.print(sum1);
}
}
System.out.println(sum1);
}
}