Untitled
unknown
plain_text
2 years ago
281 B
5
Indexable
#include <iostream> using namespace std; int main(){ int a=0, b, c=0, d=0; cin >> b; while(a-b>1){ b++; c += b; d += 1; } while(b-a>1){ a++; c += a; d += 1; } cout << float(c)/float(d); }
Editor is loading...