Hai,
I am using Borland 3.0 DOS and windows XP. Well am expecting my program result 0.2 , on the contrary my program gives 0.00 as result. What is wrong with my prog.??? it looks fine for me.
Thanks
Code:
#include<iostream.h>
#include<iomanip.h>
#include<constream.h>
#include<stdlib.h>
#include<dos.h>
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
double n;
constream cout;
n = 2+5 - 4*3 / 10 %2 -6;
cout <<setxy(1,1) <<setiosflags(ios::showpoint) <<setw(10)
<< setprecision(3) <<n ;
getch();
}