18.8k views
3 votes
Write code that read from variables N and M, multiply these two unsigned 32-bit variables and store the result in Variables P, Q. (

User Hussien
by
5.7k points

1 Answer

6 votes

Answer:

Using C language;

#include <stdio.h>

int main()

{

int N, M;

printf("Please enter two numbers: ");

scanf("%d %d", &N, &M);

int P,Q = N*M;

return 0;

}

Step-by-step explanation:

The variables N and M are declared and the "scanf" function is used to assign a value to the variables from the input prompt, then the product of N and M are saved to the P and Q variables.

User AmishDave
by
6.6k points