Hi
No matter what value of "a" I use the "b" is stuck at 2,60,000 (1+2.6e5). Why is so?
How could I also get the value of "b" in exponential form?
Is the the "F" I used in the declaration "float a = 2.6e5F" really important? As far as my limited knowledge goes "F" could be omitted. But there should be some reason to include this. I have seen a author using it in the book.
It would be extremely kind of you if you could help me with the above queries. Thanks a lot for your time.
Code:
#include <iostream>
using namespace std;
int main()
{
float a = 2.6e5F;
float b = 1 + a;
cout << "enter a = ";
cin >> a;
cout << b << endl;
system("pause");
}