Docstoc

12-Descompunerea in n factori primi

Document Sample
12-Descompunerea in n factori primi Powered By Docstoc
					#include<iostream.h> #include<conio.h> void main() {clrscr(); int n,i=2,fm; cout<<"n="; cin>>n; do{ fm=0; while(n%i==0) {fm++; n=n/i; } if(fm) cout<<i<<"la puterea"<<fm<<endl; i++; }while(n!=1); getch();}


				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:906
posted:10/28/2008
language:Romanian
pages:1
Buturca Diana-Alexandra Buturca Diana-Alexandra
About I'm only happy when it rains !