print(id,'off');

Messages in english

Modérateur : xcasadmin

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

print(id,'off');

Message par compsystems » sam. févr. 09, 2019 4:11 pm

Hello PRINT command if the entry is an identifier, label the output with the name identifier, this is important, but sometimes you only want the value without a label, for this reason it is a good idea to add a second interpretation parameter where it is indicated that the label is not desired

any ideas
print(Area,'off');
print(Area,0);
print(Area,false);

Code : Tout sélectionner

function area_of_circle( )
begin 

	local Area, Radious; 
	ClrIO; 

	printf( "Please enter the radius of a circle" );
	input( Radious );

	Area := 3.14 * Radious^2;

	print( "The area is " + Area ); 
        print(Area);
        print(Area,'off');
	return Done;

end

parisse
Messages : 5734
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: print(id,'off');

Message par parisse » dim. févr. 10, 2019 2:13 pm

print(eval(identifier)) will not display the identifier name.

Répondre