题目内容
下列程序实现查找浮点型数fn是否在数组a中,找到输出“YES”,否则输出“NOT FOUND”,请填空。# include ____main ( ){float a [10] = { 5.0 , 12.5 , 81.3 , 24.6 , 91.7 , 68.2 , 65.1 , 54.2 , 36.2 , 10.5 } ;int fn,i ;printf ( "Please input fn :" ) ;____; /*输入fn的值*/for (i = 0 ;i< 10 ; i++ ){if ( ____){printf ( "YES" ) ;break ;}}if ( ____)printf ( "NOT FOUND" ) ;}
查看答案
搜索结果不匹配?点我反馈