Mega Code Archive

 
Categories / C++ / Data Type
 

Divided by int

#include <iostream> using namespace std; int main(void) {    int firstOp = 10, secondOp = 4;    float result = firstOp / secondOp;    cout << firstOp << " / " << secondOp << " = " << result;    return 0; }