What pin is wired to what segment on the 7 segment display?
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
But, you seem to not know what is inputs and what is outputs; without that knowledge you can not do this assignment!
Are you taking a class ask for help; if self teaching you need to read up on the basics.
I suggest doing the code that does output first; because I am guessing you have no idea on how to debug any problem.
In coding, output is easier to test than input.
Tim S.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson