I have problem with my homework in C++
There is number n and numbers a1, a2, ... , an ( n<100 ) And I need to get thous number pairs, that are mutual prime.
Also I need to use function, that calculates two number mutual primes. :S
valdix 0 Newbie Poster
Recommended Answers
Jump to PostHave you got as far as say
- extracting all the factors for a given number?
Jump to PostWell step 1 is learn how to indent code so that you can see more clearly what is going on.
#include <iostream> using namespace std; int main() { int coprime(int a, int b); int c[100]; int n; int d; int there, i, a, b, y; do { …
All 6 Replies
Salem 5,265 Posting Sage
Duoas 1,025 Postaholic Featured Poster
valdix 0 Newbie Poster
valdix 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Salem 5,265 Posting Sage
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.