YiYuanErCi

YiYuanErCi - olver disp disp'a,b,c y=ax^2 bx cIF POSSIBLE a = input'a b = input'b c = input'c if a=0 b=0 c=0 disp'SB elseif a=0 b=0 disp'there is

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%ÖÜè¡ÐùµÄÒ»Ôª¶þ´Î·½³Ìsolver disp('ÖÜè¡ÐùÌ«´ÏÃ÷ÁË'); %%%% disp('ÏÂÁУ¬a,b,cΪһԪ¶þ ´Î·½³Ìy=ax^2+bx+cµÄÈý¸öϵÊý£¬ÇëÊäÈëÏÂÁÐϵÊý£¬ÏµÍ³»á¸ø³ö½â£¬IF POSSIBLE'); a = input('ÇëÊäÈëϵÊýa: '); b = input;('ÇëÊäÈëϵÊýb: '); c = input;('ÇëÊäÈëϵÊýc: '); disp('SB°ÉÄ㣡ÈÃÄãËãÒ»Ôª¶þ´Î·½³Ì£¬¶¼ÊÇÁãËã¸öµõ°¡');
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/15/2011 for the course EE 150 at USC.

Ask a homework question - tutors are online