Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out

15

VIEWS: 24 PAGES: 1

									#include<fstream.h> #include<conio.h> #include<io.h> void main() {clrscr(); int p,n,x,handle; n=0; cout<<"numarul prim"<<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();}


								
To top