C Program to Multiply Two Numbers Given by User and Display Product

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

int main()
{
	float a, b, prod;
	clrscr(); // Clears the screen
	printf("Enter the value of a: ");
	scanf("%f", &a);
	printf("Enter the value of b: ");
	scanf("%f", &b);
	prod = a * b;
	printf("Product of %f and %f is %f.",a,b,prod);
	getch(); // Holds the output
	return 0;
}

Output of the above program :
Enter the value of a: 3.3 ↲
Enter the value of b: 5 ↲
Sum of 3.300000 and 5.000000 is 16.500000.

Leave a Reply

Your email address will not be published. Required fields are marked *

https://atozonlinesolutions.com/wp-content/uploads/2017/03/logo_white.png
https://atozonlinesolutions.com/wp-content/uploads/2017/03/logo_white.png
About
Products
Subscribe

If you wish to receive our latest news in your email box, just subscribe to our newsletter. We won’t spam you, we promise!

    Applauz

    As the pioneer of the lean startup movement, APPLAUZ has dedicated it’s time to sharing effective business strategies that help new businesses and enterpreneurs put their money to work in the right way.

    Subscribe

    If you wish to receive our latest news in your email box, just subscribe to our newsletter. We won’t spam you, we promise!

      Applauz

      As the pioneer of the lean startup movement, APPLAUZ has dedicated it’s time to sharing effective business strategies that help new businesses and enterpreneurs put their money to work in the right way.

      Copyright by BOLD THEMES. All rights reserved.