How to make program that will print numbers which consists 4 and 7 when we input their ordinal number?EXAMPLESINPUT1 2 3 4OUTPUT4 7 44 47Thanks!
Just put the input number into a binary array set, and replace all 1 via 4, then for even numbers, change the first value to 7.. that's all..