Sarika73
January 28th, 2003, 09:02 AM
Hi
I have written the progam below.Its very basic.
I am getting the output 2 but i expect to get 2.5
Can any one help
-----------------------------------------------------
#include <iostream>
int main()
{
double input = 0.00; // no of sequences
input = 5 / 2;
cout << " Output " << input << endl;
}
--------------------------------------------------------
I have written the progam below.Its very basic.
I am getting the output 2 but i expect to get 2.5
Can any one help
-----------------------------------------------------
#include <iostream>
int main()
{
double input = 0.00; // no of sequences
input = 5 / 2;
cout << " Output " << input << endl;
}
--------------------------------------------------------