automated commit TP3
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "printlib.h"
|
||||
|
||||
int main() {
|
||||
bool x;
|
||||
if (x) {
|
||||
println_int(1);
|
||||
}
|
||||
x = !x;
|
||||
if (x) {
|
||||
println_int(2);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// EXPECTED
|
||||
// 2
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "printlib.h"
|
||||
|
||||
int main() {
|
||||
float x;
|
||||
println_float(x);
|
||||
x = x + 1.0;
|
||||
println_float(x);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// EXPECTED
|
||||
// 0.00
|
||||
// 1.00
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "printlib.h"
|
||||
|
||||
int main() {
|
||||
int x;
|
||||
println_int(x);
|
||||
x = x + 1;
|
||||
println_int(x);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// EXPECTED
|
||||
// 0
|
||||
// 1
|
||||
Reference in New Issue
Block a user