以前一个教授在听C语言公开课时对一个老师提出来的,现在把C换成Matlab软件,看大家如何解决。
程序:
syms x y
x=input(‘please enter a number x:’);
y=input(‘please enter a number y:’);
x=x+y;
y=x-y;
x=x-y;
以前一个教授在听C语言公开课时对一个老师提出来的,现在把C换成Matlab软件,看大家如何解决。
程序:
syms x y
x=input(‘please enter a number x:’);
y=input(‘please enter a number y:’);
x=x+y;
y=x-y;
x=x-y;