View Code of Problem 132

#include<bits/stdc++.h>
using namespace std;

int main(void)
{
  double a,b;
  while(cin>>a>>b)
  {
    if((a+b)==int(a+b))
      cout<<int(a+b)<<endl;
    else
      cout<<a+b<<endl;
  }
}

Double click to view unformatted code.


Back to problem 132