Write an algorithm, in the form of a C-Language?

  • Adds two floating point numbers
  • Shows the sum on screen.

Solution


#include <stdio.h>
int main()
{
float var1,var2,res;
  var1=24.27;
  var2=41.50;
  res=var1+var2;
  printf("%f + %f = %f",var1,var2,res);
return 0;
}