Shows mixed expressions - C++ Operator

C++ examples for Operator:Arithmetic Operator

Description

Shows mixed expressions

Demo Code

#include <iostream>
using namespace std;
int main()//from w w w  . j  av  a 2 s . c o  m
{
   int count = 7;
   float avgWeight = 155.5F;
   double totalWeight = count * avgWeight;
   cout << "totalWeight=" << totalWeight << endl;
   return 0;
}

Result


Related Tutorials