執行 ❯
建立您
自己的
網站
×
更改方向
更改主題,深色/淺色
前往 Spaces
#include <stdio.h> #include <stdlib.h> int main() { int a = 31; int b = 10; div_t result = div(a, b); printf("%d / %d = %d \n", a, b, result.quot); printf("Remainder: %d \n", result.rem); return 0; }
31 / 10 = 3
餘數:1