inputLine cmd

Messages in english

Modérateur : xcasadmin

Messages : 540
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

inputLine cmd

Message par compsystems » sam. févr. 09, 2019 1:00 am


The Input command works on a pop-up window, but the previous information message is displayed on the console, and the entry request is not really observed, because it is in two parts, for this reason the online version requires a new command that reads from the console, can be opening an input field after the last line of printing or something similar as at the beginning of the console.

Code : Tout sélectionner

function main()
	local Area, Radious; 
	printf( "Please enter the radius of a circle" ); 
	input( Radious ); // inputLine( Radious );
	Area := 3.14 * Radious ^ 2;
	print( "The area is " + Area );
	return 'Done';