Hi,
I want to write a program to print all numbers from 1 to 100 except those that end in 7 or are a multiple of 7. So the program should skip printing the numbers 7, 14, 17, 21, 27, etc. This might be easy but I want to know an efficient way to do this any ideas??
Thanks,
Van Dugall
I want to write a program to print all numbers from 1 to 100 except those that end in 7 or are a multiple of 7. So the program should skip printing the numbers 7, 14, 17, 21, 27, etc. This might be easy but I want to know an efficient way to do this any ideas??
Thanks,
Van Dugall
Comment