大一下期末考试:将数字字符和非数字字符组成的字符串中的数字提取出来
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
#define N 100
main()
{
char str[N]={
'a'};
int i,j;
printf("Please input a string:");
scanf("%s",str);
for(i=0; i<N; i++)
{
if(str[i]=='0'||