#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;
}
Chat with our AI personalities
Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers
#include
jgfujtf
$vi sum.sh echo "enter the 1st no." read num1 echo "enter the 2nd no." read num2 sum= 'expr $num1 + $num2' echo "sum of the numbers is $sum"
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end