How do I make it calculate the variable maxK in between both input arguments:
clear;close all;clc;N = input('Gamemode [4/5/6+]: ');maxK = (N^2 + 5*N + 6) / 2; % <======= This variable, so it can be used in the K input request
K = input(['Starting pieces [max.' maxK ']: ']);
Best Answer