Dev C++
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
int main() {
int x, y, z;
printf("x = ");
scanf("%d", &x);
printf("z = ");
scanf("%d", &z);
y = (x * z) / x;
printf("%d", y);
return 0;
}
Объяснение:
program abc;
var z,x,y: real;
begin
readln(z,x);
y:=z*x/x;
writeln(y);
end.
Dev C++
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
int main() {
int x, y, z;
printf("x = ");
scanf("%d", &x);
printf("z = ");
scanf("%d", &z);
y = (x * z) / x;
printf("%d", y);
return 0;
}
Объяснение:
program abc;
var z,x,y: real;
begin
readln(z,x);
y:=z*x/x;
writeln(y);
end.