User input/Text: Difference between revisions
→{{header|C}}
Line 668:
return EXIT_SUCCESS;
}</syntaxhighlight>
==={{libheader|Gadget}}===
<syntaxhighlight lang="c">
#include <gadget/gadget.h>
LIB_GADGET_START
Main
Cls;
String text;
int number=0;
At 5,5; Print "Enter text : ";
Atrow 7; Print "Enter ‘75000’: ";
Atcol 20;
Atrow 5; Fn_let(text, Input ( text, 30 ) );
Free secure text;
Atrow 7; Stack{
while (number!=75000 )
/*into stack, Input() not need var*/
number = Str2int( Input ( NULL, 6 ) );
}Stack_off;
Free secure text;
Prnl;
End
</syntaxhighlight>
{{out}}
<pre>
$ ./tests/input_cons
Enter text : Juanita la mañosa
Enter ‘75000’: 75000
$
</pre>
=={{header|C sharp|C#}}==
|