Wednesday, May 6, 2015

a small c programming / shell scripting quiz

Hi There,
i got this one thru my friend and i solved it with simple paper pencil work itself.
then i thought to solve this thru a simple C or Shell program, but its still going on.. hence i thought to check with you guys...

could you please try to write a c program / shell script to find out (maybe perl / python is good as well)
--- a 4 digit Car number
--- last digit is double of first digit
--- 2nd and 3rd digits are same.
--- last 2 digit number is double of first two digit number.

No comments:

Post a Comment