- Challenge 3 15 1 String With Digit Activity Set Hasdigit To True If The 3 Character Passcode Contains A Digit 415226 1 (101.66 KiB) Viewed 44 times
CHALLENGE 3.15.1: String with digit. ACTIVITY Set hasDigit to true if the 3-character passCode contains a digit. 415226.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
CHALLENGE 3.15.1: String with digit. ACTIVITY Set hasDigit to true if the 3-character passCode contains a digit. 415226.
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