C

Monday, 2 October 2017

Program To Find Value Of Float Expression.

#include<stdio.h>
main()
{
float exp1, exp2;
clrscr();
exp1=12.0/3.0+5.5*2.0-3.0;
exp2=(12.5+2.5)*2.0-(11.5-2.5)/3.0+13.5;
printf("Value of first expression is : %f\n",exp1);
printf("Value of second expression is :%f\n",exp2);

}

No comments:

Post a Comment

Write a program to draw a circle using mid-point circle drawing algorithm.

#include<iostream.h> #include<graphics.h> #include<conio.h> void drawcircle(int x0, int y0, int r) {         ...