Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std ;
- int main (){
- //Operasi Algoritma Modulus
- cout<<" Iman Nurohman"<<endl;
- cout<<" X RPL 1"<<endl ;
- //Pendeklarasian
- int a = 14 ;
- //Proses Program
- cout<<endl;
- cout<<a<< " % " <<2<< " = " <<a%2<<endl;
- cout<<a<< " % " <<3<< " = " <<a%3<<endl;
- cout<<a<< " % " <<4<< " = " <<a%4<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement