@JadenJoner/

Rational Exponents

C++

No description

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>

using namespace std;

int main() {

	cout << "<START> ";

	int num;
	cin >> num;

	for(int i=1; i < 11; i++){
		for(int b=1; b < 11; b++){
			if(i*b == num){
				cout << "<";
				cout << i;
				cout << ", ";
				cout << b;
				cout << "> ";
			}
		}
	}
	cout << " <END>";
}