#include <iostream> int main() { std::cout << (1 + 2)/2 << std::endl; std::cout << (1 + 2)/2.0 << std::endl; return 0;}
Standard input is empty
1 1.5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!