Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- int main (){
- int a,b,c;
- cout<<"Unesite broj: ";
- cin>>a;
- b=a;
- for (int i = 0; i<100;i++){
- while(a){
- a++;
- if(a%b==0)
- {
- cout<<a<<endl;
- break;
- }
- }
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement