Advertisement
nesarjony

Untitled

Jan 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. char x[20] = "123456";
  2. int mod = x[0]-'0';
  3.  
  4. for(int i = 0; i < strlen(str)-1; i++)
  5. {
  6. mod = ((mod*10)+(s[i+1]-'0')) % 4;
  7. }
  8. // jodi mod 0 hoy tahole x ke 4 diye mod possible
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement