C Basic 62: Math Order

6 January 2020, 1:14 am by antelove19

C programming language

C programming language



Happy Coding


main.c

/* ------------------------------------------------------------ */
/*  Math                                                        */
/*  Using Arithmetic Operators Order                            */
/*                                                              */
/*  Author: antelove                                            */
/*  Website: antelove.com                                       */
/* ------------------------------------------------------------ */

#include <stdio.h> // standar input output library

int main() {

    int a;

    printf("25 / 5 * 2 + 3 = %d \n", 25 / 5 * 2 + 3 );

    printf("25 / 5 * (2 + 3) = %d \n", 25 / 5 * (2 + 3) );

    getchar();

    return 0;    

}

Thank for reading :)


Keywords:


No Action Title
1 Live
2 Editor
0 comment