Files
sibsutis/proglabs/lab5/9.c
T
oniic 01afccea5b Changes to be committed:
modified:   proglabs/lab5/1.c
	new file:   proglabs/lab5/10.c
	new file:   proglabs/lab5/11.c
	new file:   proglabs/lab5/12.c
	new file:   proglabs/lab5/13.c
	new file:   proglabs/lab5/14.c
	modified:   proglabs/lab5/2.c
	new file:   proglabs/lab5/3-1.c
	new file:   proglabs/lab5/3-2.c
	deleted:    proglabs/lab5/3.c
	new file:   proglabs/lab5/4.c
	new file:   proglabs/lab5/5.c
	new file:   proglabs/lab5/6.c
	new file:   proglabs/lab5/7.c
	new file:   proglabs/lab5/8.c
	new file:   proglabs/lab5/9.c
	new file:   proglabs/lab5/tmp.out
2025-10-30 00:14:16 +07:00

20 lines
338 B
C

#include <stdio.h>
int x(float a, float b);
int main(){
float a,b;
int s;
printf("a b: ");
s = scanf("%f %f", &a, &b);
while (s == 2){
x(a,b);
printf("a b: ");
s = scanf("%f %f", &a, &b);
}
return 0;
}
int x (float a, float b){
printf("%.3f / %.3f = %.3f\n",a-b,a+b,((a-b)/(a+b)));
}