#include <stdio.h>
int main() {
int a, b;
// Input two integers
printf("Enter two integers: ");
// Perform arithmetic operations
int sum = a + b;
int difference = a - b;
int product = a * b;
// Display results in decimal, octal, and hexadecimal formats
printf("%d %d %d\n", sum
, difference
, product
); // Decimal printf("%o %o %o\n", sum
, difference
, product
); // Octal printf("%X %X %X\n", sum
, difference
, product
); // Hexadecimal
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBhLCBiOwoKICAgIC8vIElucHV0IHR3byBpbnRlZ2VycwogICAgcHJpbnRmKCJFbnRlciB0d28gaW50ZWdlcnM6ICIpOwogICAgc2NhbmYoIiVkICVkIiwgJmEsICZiKTsKCiAgICAvLyBQZXJmb3JtIGFyaXRobWV0aWMgb3BlcmF0aW9ucwogICAgaW50IHN1bSA9IGEgKyBiOwogICAgaW50IGRpZmZlcmVuY2UgPSBhIC0gYjsKICAgIGludCBwcm9kdWN0ID0gYSAqIGI7CgogICAgLy8gRGlzcGxheSByZXN1bHRzIGluIGRlY2ltYWwsIG9jdGFsLCBhbmQgaGV4YWRlY2ltYWwgZm9ybWF0cwogICAgcHJpbnRmKCIlZCAlZCAlZFxuIiwgc3VtLCBkaWZmZXJlbmNlLCBwcm9kdWN0KTsgICAgICAgICAgIC8vIERlY2ltYWwKICAgIHByaW50ZigiJW8gJW8gJW9cbiIsIHN1bSwgZGlmZmVyZW5jZSwgcHJvZHVjdCk7ICAgICAgICAgICAvLyBPY3RhbAogICAgcHJpbnRmKCIlWCAlWCAlWFxuIiwgc3VtLCBkaWZmZXJlbmNlLCBwcm9kdWN0KTsgICAgICAgICAgIC8vIEhleGFkZWNpbWFsCgogICAgcmV0dXJuIDA7Cn0=