inputLine cmd

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 561
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

Hello

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()
begin  
	local Area, Radious; 
	ClrIO; 
	printf( "Please enter the radius of a circle" ); 
	input( Radious ); // inputLine( Radious );
	Area := 3.14 * Radious ^ 2;
	print( "The area is " + Area );
	return 'Done'; 
end;

Répondre