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
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
Business Studies,
3 months ago
India Languages,
3 months ago
Environmental Sciences,
3 months ago
Accountancy,
6 months ago
Science,
6 months ago
Math,
9 months ago
Math,
9 months ago