Computer Science, asked by avantikatiwari98, 12 days ago

Find the sum of squares of individual digits of a number 'sqdnumber' and store the sum in variable 'sqdNumber_result'. int sqdnumber: Original number int sqdNumber_result: Store the resultant in this variable in c++

Answers

Answered by Trilokssingh560
2

Answer:

if the number is 234, the sum is computed as (22 + 32 + 42 = 4 + 9 + 16 = 29)

.....code.....import java.util.Scanner;public class Program{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int sqdNumber=sc.nextIn ...

Similar questions