Untitled

Run Settings
LanguageC
Language Version
Run Command
#include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<string.h> int main(void) { char *a[50]; char enter; int choose; char number[50]; char dou[50]; double ans; int i=0,j=0; char t[]="True"; char f[]="Flase"; char w[]="\0"; while(1) { printf("輸入請按1,離開請按0:"); scanf("%d",&choose); if(choose==0) { break; } printf("請輸入數字:"); scanf("%s",number); a[i]=number; printf("%s\n",a[i]); i++; } for(j=0;j<i;j++) { strcpy(dou,a[j]); ans=atof(dou); printf("%s",a[j]); if(ans!=(int)ans) { printf(" %3.6f",ans); printf(" %5s\n",t); } else { printf(" Undefind"); printf(" %5s\n",f); } } system("PAUSE"); return 0 ; }
Editor Settings
Theme
Key bindings
Full width
Lines