DECIMAL TO HEXADECIMAL CONVERSION - CPPIOA002

Description:

Write a program and input two integers in main and pass them to default constructor of the class. Show the result of the addition of two numbers. Test Case 1 Input (stdin) 5 6 Expected Output 11 Test Case 2 Input (stdin) 11 13 Expected Output 24

Program :

  • #include <iostream>

    using namespace std;

    int main()

    {

    int n;

      cin>>n;

      n=n+55;

      cout<<char(n);

    return 0;

    }