Fix a bug

This commit is contained in:
xtaodada 2021-10-25 14:07:25 +08:00
parent 0fbcec7aa1
commit 02faf4462e
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736

View File

@ -6,9 +6,10 @@ int number(int num){
if (a == 0 || b == 0 || c == 0) { if (a == 0 || b == 0 || c == 0) {
printf("Can be divisible by "); printf("Can be divisible by ");
if (a == 0) if (a == 0){
first = 0; first = 0;
printf("3"); printf("3");
}
if (b == 0){ if (b == 0){
if (first) { if (first) {
printf("5"); printf("5");