Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 470 Bytes

productOfDigits.md

File metadata and controls

29 lines (19 loc) · 470 Bytes

Code:

#include<stdio.h>

void main(){
  int num1,num2,product=0;

  printf("Enter two numbers:");
  scanf("%d%d", &num1, &num2);

  product= num1 * num2;
  printf("Product of %d x %d = %d", num1, num2, product);
}

Algorithm:

Step 1: Start

Step 2: Initialize num1, num2 and product.

  • product=0

Step 3: Read two numbers & store it in variable num1, num2.

Step 4: product = num1 * num2

Step 5: Display the Product

Step 6: Stop