Sapient Corporation Interview Report
- 0of 0 votes
Answerswrite a program to print checksum for given number
- kiran February 29, 2012 in India
by taking last digit sapeate and if sum of squares of remaining numbers are equal to previous last number then print valid checksum else invalid
example: 321543 take 3 saperately and
let sum of squares be 3^2+2^2+1^2+5^2+4^2 == 3(last digit) then print valid checksum otherwise invalid| Report Duplicate | Flag | PURGE
Sapient Corporation Developer Program Engineer Arrays
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.