Dremendo Tag Line

Product of 2 integer numbers in C

printf() - Question 8

In this question, we will see how to print the product of 2 integer numbers in C programming using the printf() function. To know more about printf() function click on the printf() function lesson.

Q8) Write a program in C to find the product of 2 integer numbers like int a=4, b=8.

Program

#include <stdio.h>
#include <conio.h>

int main()
{
    int a=4, b=8;
    printf("Product=%d",a*b);
    return 0;
}

Output

Product=32
video-poster