Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char x[20] = "123456";
- int mod = x[0]-'0';
- for(int i = 0; i < strlen(str)-1; i++)
- {
- mod = ((mod*10)+(s[i+1]-'0')) % 4;
- }
- // jodi mod 0 hoy tahole x ke 4 diye mod possible
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement