Skip to content
Snippets Groups Projects
Commit db5751fd authored by ANDERSSEN CONSTANTIN's avatar ANDERSSEN CONSTANTIN
Browse files

added test3_max.corec

parent 98a79429
Branches
1 merge request!12print 20 floars per line in print_print case ARRAY
......@@ -22,7 +22,7 @@ prog Test3 {
array1[12] = 8.56;
array1[13] = 17;
array1[14] = 4.44;
array1[15] = 10.0;
array1[15] = 10.11;
array1[16] = 3.33;
array1[17] = 22;
array1[18] = 19.5;
......@@ -58,7 +58,9 @@ prog Test3 {
array1[48] = 6.25;
array1[49] = 9.9;
printstr("Expected result : \n5.32 12.00 7.89 3.14 42.00 18.27 1.11 6.00 21.95 14.01 9.00 2.71 8.56 17.00 4.44 10.11 3.33 22.00 19.50 7.77 \n13.37 5.00 25.25 8.00 20.20 11.11 15.00 30.30 16.66 4.00 18.00 7.07 12.34 9.87 14.00 6.66 5.55 19.00 2.22 20.00 \n3.00 18.88 4.04 22.22 8.80 16.00 11.23 7.50 6.25 9.90");
printstr("Expected result : \n5.32 12.00 7.89 3.14 42.00 18.27 1.11 6.00 21.95 14.01 9.00 2.71 8.56 17.00 4.44 ");//10.11 3.33 22 19.5 7.77 \n 13.37 5 25.25 8 20.2 11.11 15 30.3 16.66 4 18 7.07 12.34 9.87 14 6.66 5.55 19 2.22 20 \n 3 18.88 4.04 22.22 8.8 16 11.23 7.5 6.25 9.9");
printstr("10.11 3.33 22 19.5 7.77 \n13.37 5 25.25 8 20.2 11.11 15 30.3 16.66 4 18 7.07 ");
printstr("12.34 9.87 14 6.66 5.55 19 2.22 20 \n3 18.88 4.04 22.22 8.8 16 11.23 7.5 6.25 9.9");
printstr("\nObtained Result : \n");
print(array1) // contain all the values exchanges here if the code is correct
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment