locked
Using C# language! RRS feed

  • Question

  • Print numbers from 1 to 100, such like print "Three" for multiples of 3 and "Five" comes for multiple of 5, instead of their original values. if both (Three, Five) comes in the place 15 should come "Three,Five"

    OUTPUT                                                                       15 comes with both

    1, 2, Three, 4, Five, Three, 7, 8, Three, Five,11,Three,13,14,Three,Five, 16, 17,.........

    Wednesday, September 4, 2013 2:00 PM