C Program to Multiply Two Floating-Point Numbers
C Program for Practice
Multiply floating number withour use third variable
--------------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr(); // clear previous screen
float num, num2; // floating value variable
printf("enter two number \n"); // print function on screen
scanf("%f%f",&num&num2); // put value by user used to scanf function
printf("%5.2f",num*num2); // print function on screen
getch();}// to get programme at screen
Comments
Post a Comment