Search
 
SCRIPT & CODE EXAMPLE
 

CPP

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;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: 2000pp pp play osu std 
Cpp :: haxelib install cpp 
Cpp :: cpp Case value is not a constant expression 
Cpp :: cannot access base class members 
Cpp :: what is stdarg.h used for 
Cpp :: delete an dynamic array 
Cpp :: sfml get position 
Cpp :: txt auslesen c++ 
Cpp :: access the element of vector point2f c++ 
Cpp :: do c++ ints neeed to be initlaized 
Cpp :: how to print std::string 
Cpp :: fasdf 
Cpp :: C++ (gcc 8.3) sample 
Cpp :: Use command line arguments to create file c++ 
Cpp :: qt c++ thread example 
Cpp :: python Difference Array | Range update query in O(1) 
Cpp :: c++ program to use nmap 
Cpp :: auto keyword 
Cpp :: how to delay text in c++ console app 
Cpp :: can derived class access base class non-static members without object of the base class 
Cpp :: tempcoderunnerfile.cpp:1:1: error: does not name a type 
Cpp :: bitmap rotate 90 deg 
Cpp :: C++ 4.3.2 (gcc-4.3.2) sample 
Cpp :: patterns in c++ 
Cpp :: declare a structer in cpp 
Cpp :: c++ cout int 
Cpp :: fenwick tree 
Cpp :: how to initialize priority queue c++ 
Cpp :: pointer to constant 
Cpp :: how to shorten code using using c++ in class with typename 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =