S2-C-Programs

All major conceptual S2 C-Programs with Algorithms

View the Project on GitHub trulyPranav/S2-C-Programs

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.

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

Step 4: product = num1 * num2

Step 5: Display the Product

Step 6: Stop