creating condition in scilab console
Title
Question
I want to create program to calculate area of circle
if radius r is less than 10 calculate Area of circle
other wise print "NA"
Scilab Conditional-Branching 03-04 min 0-10 sec
Answers:
if r <10
A = %pi*r^2
else
disp("NA")
end
Please refer videos on conditional branching and come up with your own solution. Still if you are unable to get an output post your program here. We will help you out with the corrections in your program.
Login to add comment