Check for all the four digits tech number. If the number is
split in 2 equal halves, then the square of the sum of
these halves is equal to the number itself. Eg. 3025
(30+25)2 (55)2 is equal to 3025 so tech number
Answers
Answered by
1
Answer:
import java.io.*; import java.util.*; class TechNumber { public static void main(String args[ ]) { int i, a, b, sum; String n; System.out.println(“Four Digits Tech Numbers are::”); for(i = 1000; i < 1000; i+ +) { n = i +””; a = lnteger,parselnt(n.substring(0, 2)); b = Integer.parselnt(n.substring(2)); sum = (int)Math.pow((a + b), 2); if (sum == i) System.out.println(i);
Explanation:
please mark me Brainlisttis please
Similar questions