In x86-64 Windows Assembly Language. Program that adds two unsigned integer values and produces formatted console output using the 'C' library function printf(). The two unsigned integer values are input by the user from the keyboard at runtime using the 'C' library function scanf().
Steps to follow:
Code:
#include <stdio.h>
int main() {
unsigned int first, second, sum;
printf("Enter first number: ");
scanf("%u", &first);
printf("Enter second number: ");
scanf("%u", &second);
sum = first + second;
printf("Sum: %u", sum);
return 0;
}
Output:
Get Answers For Free
Most questions answered within 1 hours.