Program c + + to initialize the division

This program is intended to distinguish between numbers that could be in for it or not.

#include <iostream>
using namespace std;

int main(){
 int a,b;
 cout<<"masukan nilai= "<<endl;
 cin>>a>>b;
 if(a%b==0)
 cout<<a<<"dapat di bagi dengan= "<<b<<endl<<endl;
 else
 cout<<a<<"tidak daat dibagi dengan= " <<b<<endl<<endl;
 system("pause");
 return 0;

}
ok. thank you..🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: