Tool/software: Code Composer Studio
i developed a program using float variable but iam unable to get the output i am unable to understand the source of error so anybody please help regarding this issue!!!
CODE:
#include<stdio.h>
void main(void)
{
volatile float a,b,sum,sub,mul,div;
printf("Enter the First Float Number:");
scanf("%f", &a);
printf("\n Enter the Second float Number:");
scanf("%f", &b);
sum=a+b;
sub=a-b;
mul=a*b;
div=a/b;
printf("Floting Substraction of two Number: %f", sum);
printf("\n Floting Substraction of two Number : %f", sub);
printf("\n Floting Multiplication of two Number : %f", mul);
printf("\n Floting Division of two Number : %f", div);
}