Let two consecutive numbers be x and x+1
Given:
x2+(x+1)2=265
x2+x2+1+2x=265
2x2+2x−264=0
x2+x−132=0
(x+12)(x−11)=0
x=11 and x=−12
Hence consecutive numbers are 11,12 or −12,−11