Skip to content
Snippets Groups Projects
Commit eba8e984 authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

WIMS: trivial minimal script

parent 1aa32a41
No related branches found
No related tags found
No related merge requests found
\title{Affichage d'un programme C++}
\language{fr}
\author{Nicolas M. Thiry}
\email{Nicolas.Thiery@u-psud.fr}
\format{html}
\text{code=
#include <iostream>
using namespace std;
int main() {
int x = 1+2;
if ( x == 3 ); {
cout << "Bonjour!" << endl;
}
cout << "Au revoir." << endl;
return 0;
}
}
\text{output=
42
}
\statement{
<p>
Qu'affiche le programme suivant?
<hr>
<pre>
\special{expandlines \code}
</pre>
<hr>
}
\answer{La longueur}{\output}{type=text}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment