Which function to use to find the multiple of a number in java?
Answers
Answered by
1
Answer:
- #include <iostream>
- using namespace std;
- void findMultiples(int n){
- for(int i = 0; i <= n; i++)
- if(i % 3 == 0 && i % 5 == 0)
- cout << i << endl;
- }
Similar questions