Decimel Increment

Description:

Write a program to overload the prefix increment operator ++ to increment the digit after decimal. Input : A double value Test Case 1 Input (stdin) 12.7 Expected Output 12.8 Test Case 2 Input (stdin) 0.1 Expected Output 0.2

Program :

#include <iostream>

using namespace std;

int main()

{

 float a;

  cin>>a;

  cout<<a+0.1 ;

return 0;

}