Professional Documents
Culture Documents
Ps 1
Ps 1
Ps 1
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
float temp, c;
scanf("%f", &temp);
c = ((temp-32)*5)/9;
printf("%.2f", c);
return 0;
}
-------------------------------------
2----------
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
x = abs(a-b);
y = fabs(c-d);
----------------------------------------
1-------
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
int x=10, y=20;
scanf("%d %d", &x,&y);
x= x+y;
y= x-y;
x= x-y ;
printf("%d %d",x,y); return 0;
}