%----------------------------------------------------------------------
% example_io.m
%----------------------------------------------------------------------
%
% Example program to illustrate simple Input/Output (IO)
%
%
%----------------------------------------------------------------------
% 5/9/13	N. Teanby	Original version
%----------------------------------------------------------------------
clear all
close all

disp('Example IO program')

x = 3.2;
disp('Initial value of x is:');
disp(x)

x = input('Enter a new value for x:')
disp('New value of x is:')
disp(x)

y = x^2;
z = sqrt(x);


disp('x squared is:')
disp(y)
disp('square root of x is:')
disp(z)

if (x > 10)
  disp('x is bigger than 10')
else
  disp('x is less than or equal to 10')
end


