Docstoc

15

Document Sample
15 Powered By Docstoc
					#include<fstream.h> #include<conio.h> #include<io.h> void main() {clrscr(); int p,n,x,handle; n=0; cout<<"scrieti numarul prim dorit"<<endl; cin>>p; cout<<endl; ifstream f("nr.in"); while(f>>x) { cout<<x<<endl; while(x%p==0){ n+=1; x=x/p; } } cout<<"puterea este "<<n; getch();}

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