1. C語言用選擇結構編程實現,輸入一行字元,將其中的數字字元對應的整數值加起來,並輸出結果。如:4a5
#include<stdio.h>intmain(){ inti,sum=0; chara[100]; gets(a); for(i=0;a[i]!='