//Enter any number..
//Cubes till the entered number would be displayed starting from 1
n=input("Enter n natural number to find cubes: ")
for i=1:n
disp([i i^3])
end
Output
-->exec('D:\Scilab prog by me\prac2.sce', -1)
Enter n natural number to find cubes: 4
1. 1.
2. 8.
3. 27.
4. 64.
//Cubes till the entered number would be displayed starting from 1
n=input("Enter n natural number to find cubes: ")
for i=1:n
disp([i i^3])
end
Output
-->exec('D:\Scilab prog by me\prac2.sce', -1)
Enter n natural number to find cubes: 4
1. 1.
2. 8.
3. 27.
4. 64.
This is an superior writing service point that doesn't always sink in within the context of the classroom
ReplyDeleteLearn Install codeblock on WIndows, mac and linux