#include <stdio.h>
int main() {
int num1, num2, product;
printf("Enter two numbers: "
scanf("%d %d", &num1, &num2);
product = num1 * num2;
printf("Product = %d
", product);
return 0;
}
#include <stdio.h>
int main() {
int num1, num2, product;
printf("Enter two numbers: "
scanf("%d %d", &num1, &num2);
product = num1 * num2;
printf("Product = %d
", product);
return 0;
}
#include <stdio.h>
int main() {
// Declare variables to store the numbers and their sum
int num1, num2, num3, sum;
// Prompt the user to enter three numbers
printf("Enter the first number: "
scanf("%d", &num1);
printf("Enter the second number: "
scanf("%d", &num2);
printf("Enter the third number: "
scanf("%d", &num3);
// Calculate the sum of the three numbers
sum = num1 + num2 + num3;
// Display the result
printf("The sum of %d, %d, and %d is %d
", num1, num2, num3, sum);
return 0;
}
Asif
Delete Comment
Are you sure that you want to delete this comment ?