answersLogoWhite

0

#include<iostream>

#include<queue>

#include<stack>

int main()

{

int x = 0x1f;

int y = 0xa2;

std::cout.hex;

std::cout << "0x" << std::hex << x <<

" + " << "0x" << std::hex << y <<

" = " << "0x" << std::hex << x+y <<

std::endl;

}

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What is 15 plus 13 in hexadecimal numbers?

Expressed as a sum in hexadecimal form, F + D = 1C.


Write a program in c plus plus for finding the sum of first 10 even numbers?

int i, sum = 0; for (i=0; i&lt;20; i+=2) sum+=i;


How can i add Hexadecimal numbers 2E and 34?

To add the hexadecimal numbers 2E and 34, first align them by their least significant digits: 2E + 34 Starting from the right, E (14 in decimal) + 4 equals 18, which is 12 in hexadecimal (write down 2 and carry over 1). Next, add 2 + 3 + 1 (the carry) to get 6. Therefore, the sum is 62 in hexadecimal.


What is the answer to Write the sum of the numbers as the product of their GCF and another sum numbers are 27 plus 18120 plus 6 and 9 plus 35?

The set of numbers given are not suited for this since 9 and 35 are co-prime so that the GCF of the given set of numbers is 1. Using a GCF of 1 does not help.


How do i write 0.07 plus 0.006 plus 0.0005?

To write the sum of 0.07, 0.006, and 0.0005, first align the numbers by their decimal points: 0.0700 + 0.0060 + 0.0005 Then, add them column by column, starting from the rightmost side. The total sum is 0.0765.


How can i add Hexadecimal numbers 2E and 34 without converting them into decimal?

To add hexadecimal numbers 2E and 34 without converting them into decimal, you first need to align the numbers by place value. Start from the rightmost digit and add each pair of digits, carrying over if the sum is greater than 15 (F in hexadecimal). In this case, 2E + 34 equals 62 in hexadecimal. The final answer is 62.


How. to. write an. algorthim. to find the. sum of. first. 15 natural. numbers?

Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers


What is the SUM of these two numbers 6 plus 2?

The sum of 6 plus 2 is 8.


Hoe can you write a programme to claculate 1 plus 2 plus 3..100?

You add the numbers in a loop. Here is an example in Java:int sum = 0;for (int i = 1; i


What numbers as a sum of two prime numbers 95?

You can't write that as the sum of two prime numbers. Note: Goldbach's Conjecture (for expressing numbers as the sum of two prime numbers) applies to EVEN numbers.


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


What is the c plus plus program for printing sum to n natural numbers?

main() { int i, n, sum=0; cout&lt;&lt;"Enter the limit"; cin&gt;&gt;n; for(i=0;i&lt;=n;i++) sum=sum+i; cout&lt;&lt;"sum of "&lt;&lt;n&lt;&lt;" natural numbers ="&lt;&lt;sum; getch(); }