How to store two inputs

int i,p;
for(i=1;i<=n;i++){
cin>>p;
}

how to store two inputs … so that we can get two outputs…

eg test case = 2
input 1 = 12345
input 2 = 1234

output 1 = Yes
output 2 = No

hi @panditabhi29263 use test cases type
refer