lundi 26 septembre 2016

find the faults with the program and code

A program multiplies 2 real numbers x and y and print the result.

Suppose the pseudocode of the program is as follows.

 double x, y, result;
 input(x,y);
 result = x + y;
 print(result);

what is the fault?

Aucun commentaire:

Enregistrer un commentaire