blob: 33ae98f6c49244596d1cb94a002afe1d6f15cc53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clear
clc
disp("Example 9: Write a code-sequence to exit the console")
printf("\n*******************************************************************\n")
disp("Answer : ")
halt("Ready???...Press Enter to continue")
printf("Close the Scilab Console?....\ny :Yes\nAny other key:No")
st = input('','s')
clc(1)
if( st == "y") then
exit
end
printf("\n*******************************************************************\n")
|