Horje
flowchart to display factors of a number Code Example
flowchart to display factors of a number
#include<iostream>
using namespace std;
int main() {
   int num = 20, i;
   cout << "The factors of " << num << " are : ";
   for(i=1; i <= num; i++) {
      if (num % i == 0)
      cout << i << " ";
   }
   return 0;
}




Cpp

Related
271533778232847 Code Example 271533778232847 Code Example
algorithm map values Code Example algorithm map values Code Example
fabs c c++ Code Example fabs c c++ Code Example
can you add a bool and an int Code Example can you add a bool and an int Code Example
how to print out a two dimensional array in c++ Code Example how to print out a two dimensional array in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10