Logo 
Search:

C Programming Forum

Ask Question   UnAnswered
Home » Forum » C Programming       RSS Feeds

C++ homework

  Asked By: Mihael    Date: Jan 10    Category: C Programming    Views: 662
  

How to make program that will print numbers which consists 4 and 7 when we input their ordinal number?



EXAMPLES

INPUT

1 2 3 4


OUTPUT


4 7 44 47


Thanks!

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Eisa Nodehi     Answered On: Jan 25

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..

 
Didn't find what you were looking for? Find more on C++ homework Or get search suggestion and latest updates.




Tagged: