#include <iostream>using namespace std; int main() { int a=5,b=6,n=b-a+1; int s=((a+b)*n)>>1; cout<<s; return 0;}
Standard input is empty
11
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!