@vncpetrov/

DivisionOperator1

C++

No description

fork
loading
Files
  • main.cpp

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8667460567060419","path":"main.cpp","file":{"path":"main.cpp","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CmludCBhID0gMjU7CmNvdXQgPDwgYSAvIDQgPDwgZW5kbDsgICAgLy8gNgpjb3V0IDw8IGEgLyA0LjAgPDwgZW5kbDsgIC8vIDYuMjUKY291dCA8PCBhIC8gMCA8PCBlbmRsOyAgICAvLyBFcnJvciAgICAKfQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
#include <iostream>
using namespace std;

int main() {
int a = 25;
cout << a / 4 << endl;    // 6
cout << a / 4.0 << endl;  // 6.25
cout << a / 0 << endl;    // Error    
}