C Program To Read The Values Of a, b & c And Print The Results Expressions In One Line

C Program To Read The Values Of a, b & c And Print The Results Expressions In One Line

#include<stdio.h>

void main()
{

 int a, b, c;
 float x, y, z;

 printf("Enter values of a,b and c :\n");
 scanf("%d %d %d", &a, &b, &c);

 x = (a + b - c) / (a - b - c);
 y = (a + b + c) / 2;
 z = (a + b) * (a*b) * (b - c);

 printf("Value of x = %f\n",x);  //Print Output On screen(value of x,y,z)
 printf("Value of y = %f\n",y);
 printf("\nValue of z = %f\n",z);

}

Related Posts