inf NaN
Input:
#include<bits/stdc++.h>
#define s std::
int main()
{
double zero=0.0;
double posinf=5.0/zero;
s cout<<posinf<<s endl;
double neginf=-5.0/zero;
s cout<<neginf<<s endl;
double nan=zero/zero;
s cout<<nan<<s endl;
}
Output:
inf
-inf
nan
Process returned 0 (0x0) execution time : 0.055 s
Press any key to continue.
মন্তব্যসমূহ
একটি মন্তব্য পোস্ট করুন