Program to illustrate Associative law for Arithmetic Operators

  
     # include <iostream.h>
     int main( )
     {
          int a, b, c, d, e, f;
          a = 5, b = 2 ;
          c = 3,  d = 7;
          e = 13;
          f = a * b - d % c + e ;
          cout<<"\n value  =  "<<f ;
          return 0;
      }

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|