matlab

A=0; B=0; C=0; D=0; F=0; for m=1:5 x=input('Enter grades for student'); if x>=85 A=A+1; elseif x>=75 B=B+1; elseif x>=65 C=C+1; elseif x>=50 D=D+1; else F=F+1; end end result=[A B C D F]
ommn

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.