Calculo de expresiones de un programa - YezaelOtamendi/Programamcion-en-C GitHub Wiki
#include <stdio.h>
#include <math.h>
int main (void){
float x;
x= 5 / 2 + 20 % 6;
printf("%.2f\n", x);
x= 4 * 6 / 2 - 15 / 2;
printf("%.2f\n", x);
x= 5 * 15 / 2 / (4 - 2);
printf("%.2f\n", x);
x= 8 == 16 || 7 != 4 && 4 < 1;
printf("%.2f\n", x);
x= (4 * 3 < 6 || 3 > 5 - 2) && 3 + 2 < 12;
printf("%.2f\n", x);
x= 7 + 3 * 6 / 2 - 1;
printf("%.2f\n", x);
x= 2 % 2 + 2 * 2 - 2 / 2;
printf("%.2f\n", x);
x= (3 * 9 * (3 + (9 * 3 / (3))));
printf("%.2f", x);
}