Created
March 6, 2021 14:50
-
-
Save vineethm1627/9350bbeb7700a43f3ac6ddbbed35f79b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
char info[ ] = "Snoqualmie WA 13190"; | |
char city[50]; | |
char state[50]; | |
int population; | |
sscanf(info, "%s %s %d", city, state, &population); | |
printf("%d people live in %s, %s.", population, city, state); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment