Computer Science, asked by sahilcool1283, 10 months ago

Which function to use to find the multiple of a number in java?

Answers

Answered by Anonymous
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