11

Document Sample
11 Powered By Docstoc
					#include<iostream.h> #include<conio.h> int cmmdc(int a, int b) { if(a==b) return a; else if(a>b) return cmmdc(a-b,b); else if (a<b) return cmmdc(a,b-a);} void main() {clrscr(); int n, i; cout<<"n="; cin>>n; for(i=2;i<n;i++) if(cmmdc(n,i)==1) cout<<i<<endl; getch(); }


				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:16
posted:10/30/2008
language:
pages:1