A U.S. social security number consists of a string of 9 digits, such as “444422333”. Assume that input consists of a sequence of 9-digit social security numbers with no intervening spaces or separators of any kind: 111223333444422333123456789987654321… Assume that a char array named ssn suitable for storing a social security number as a C-string has been declared. Use this array to read in 3 successive social security numbers and print each one out on a line by itself.

A U.S. social security number consists of a string of 9 digits, such as “444422333”. Assume  that input consists of a sequence of 9-digit social security numbers with no intervening spaces or separators of any kind:  111223333444422333123456789987654321… Assume that a char array named ssn suitable for storing a social security number as a C-string has been declared. Use this array to read in 3 successive social security numbers and print each one out on a line by itself.

LANGUAGE: C++

CHALLENGE:

A U.S. social security number consists of a string of 9 digits, such as “444422333”. Assume that input consists of a sequence of 9-digit social security numbers with no intervening spaces or separators of any kind: 111223333444422333123456789987654321… Assume that a char array named ssn suitable for storing a social security number as a C-string has been declared. Use this array to read in 3 successive social security numbers and print each one out on a line by itself.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level