Write a function that has two subfunctions that do the follo
     Write a function that has two sub-functions that do the following. Use the same m file.  Display the value of x^2 from 1 to n using a while loop  Display the value of x^2 from 1 to n using a for loop 
  
  Solution
n=0;
while(n<1000)
n = n*n;
n=n+1
end disp(n)
for k = 0
k= k* k;
k=k+1;
end disp(k)

