题解 | #被5整除问题#
被5整除问题
https://www.nowcoder.com/practice/a4f527b043c04551bf4b80b4275a53bd
#include <stdio.h> #include <string.h> int main() { int i; scanf("%d", &i); char result[] = "NO"; if (i % 5 == 0) { strcpy(result, "YES"); } printf("%s", result); return 0; }