kiran
BAN USER
Questions (5)
Comments (1)
Followers (1)
Reputation 80
- 0of 0 votes
Answerswrite a program to print checksum for given number
- kiran 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.
this code works good...
- kiran May 11, 2012