Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Number 10


#include <stdio.h>
int main() 
{ 
    int a = 30;  
    int b = 10;  
    int c = 15; 
    int d = 5; 
    int e;  
    e = (a + b) * c / d;
  
    // ( 30 * 15 ) / 5  
    printf("Value of (a + b) * c / d is : %d
", e );  
    e = ((a + b) * c) / d; 
  
    // (30 * 15 ) / 5  
    printf("Value of ((a + b) * c) / d is : %d
" , e ); 
    e = (a + b) * (c / d); 
  
   // (30) * (15/5)  
   printf("Value of (a + b) * (c / d) is : %d
", e );  
   e = a + (b * c) / d;  
  
   // 30 + (150/5)  
   printf("Value of a + (b * c) / d is : %d
" , e );  
   return 0;  
} 
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #Number
ADD COMMENT
Topic
Name
9+4 =