si un cod creeat de mine
#include <stdio.h> void main(void) { float a = 5637; float b = 865; float c = 9564; printf("a=%f\n \n",a); printf("b=%f\n \n",b); printf("c=%f\n \n",c); printf("Suma este: %f\n \n",a + b + c); printf("Media aritmetica este: %f\n \n",(a + b + c) / 3); printf("a-b= %f\n \n",a - b); printf("a-c= %f\n \n",a - c); printf("b-a= %f\n \n",b - a); printf("b-c= %f\n \n",b - c); printf("c-a= %f\n \n",c - a); printf("c-b= %f\n \n \n",c - b); printf("a+b= %f\n \n",a + b); printf("a+c= %f\n \n",a + c); printf("b+a= %f\n \n",b + a); printf("b+c= %f\n \n",b + c); printf("c+a= %f\n \n",c + a); printf("c+b= %f\n \n \n",c + b);
printf("a-(b-c)= %f\n \n",a - (b - c)); printf("a-(b+c)= %f\n \n",a - (b + c)); printf("a-(c-b)= %f\n \n",a - (c - b)); printf("a-(c+b)= %f\n \n",a - (c + b));
printf("a+(b-c)= %f\n \n",a + (b - c)); printf("a+(b+c)= %f\n \n",a + (b + c)); printf("a+(c-b)= %f\n \n",a + (c - b)); printf("a+(c+b)= %f\n \n \n",a + (c + b));
printf("b-(a-c)= %f\n \n",b - (a - c)); printf("b-(a+c)= %f\n \n",b - (a + c)); printf("b-(c-a)= %f\n \n",b - (c - a)); printf("b-(c+a)= %f\n \n",b - (c + a));
printf("b+(a-c)= %f\n \n",b + (a - c)); printf("b+(a+c)= %f\n \n",b + (a + c)); printf("b+(c-a)= %f\n \n",b + (c - a)); printf("b+(c+a)= %f\n \n \n",b + (c + a));
printf("c-(a-b)= %f\n \n",c - (a - b)); printf("c-(a+b)= %f\n \n",c - (a + b)); printf("c-(b-a)= %f\n \n",c - (b - a)); printf("c-(b+a)= %f\n \n \n",c - (b + a));
printf("c+(a-b)= %f\n \n",c + (a - b)); printf("c+(a+b)= %f\n \n",c + (a + b)); printf("c+(b-a)= %f\n \n",c + (b - a)); printf("c+(b+a)= %f\n \n \n",c + (b + a));
printf("a:(b:c)= %f\n \n",a / (b / c)); printf("a:(b*c)= %f\n \n",a / (b * c)); printf("a:(c:b)= %f\n \n",a / (c / b)); printf("a:(c*b)= %f\n \n",a / (c * b));
printf("a*(b:c)= %f\n \n",a * (b / c)); printf("a*(b*c)= %f\n \n",a * (b * c)); printf("a*(c:b)= %f\n \n",a * (c / b)); printf("a*(c*b)= %f\n \n \n",a * (c * b));
printf("b:(a:c)= %f\n \n",b / (a / c)); printf("b:(a*c)= %f\n \n",b / (a * c)); printf("b:(c:a)= %f\n \n",b / (c / a)); printf("b:(c*a)= %f\n \n",b / (c * a));
printf("b*(a:c)= %f\n \n",b * (a / c)); printf("b*(a*c)= %f\n \n",b * (a * c)); printf("b*(c:a)= %f\n \n",b * (c / a)); printf("b*(c*a)= %f\n \n \n",b * (c * a));
printf("c:(a:b)= %f\n \n",c / (a / b)); printf("c:(a*b)= %f\n \n",c / (a * b)); printf("c:(b:a)= %f\n \n",c / (b / a)); printf("c:(b*a)= %f\n \n \n",c / (b * a));
printf("c*(a:b)= %f\n \n",c * (a / b)); printf("c*(a*b)= %f\n \n",c * (a * b)); printf("c*(b/a)= %f\n \n",c * (b / a)); printf("c*(b*a)= %f\n \n \n",c * (b * a));
}
|
|