CHALLENGE 3.15.1: String with digit. ACTIVITY Set hasDigit to true if the 3-character passCode contains a digit. 415226.
Posted: Fri Jul 08, 2022 6:16 am
CHALLENGE 3.15.1: String with digit. ACTIVITY Set hasDigit to true if the 3-character passCode contains a digit. 415226.2573686.qx3zqy7 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdbool.h> 4 #include <ctype.h> 5 6 int main(void) { 7 bool hasDigit; 8 9 10 11 12 13 14 15 Run char passCode [50]; hasDigit false; scanf("%s", passCode); /* Your solution goes here if (hasDigit) { * 1 test passed All tests passed