Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Contoh kode untuk demo mod dan contoh menampilkan tanda percent % di printf
- #include<stdio.h>
- #include <stdlib.h>
- int main(){
- unsigned int i, denom=2;
- for(i=0; i<=50; i++){
- printf("Nilai %d %c %d adalah: %d \n",i,'%',denom,(i%denom));
- //
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement