Subject: problem in c++
Posted By: rajesh sehgal Post Date: 4/17/2008 12:04:40 AM
hi to all

this is a c++ program which doesn't give a proper output

the coding of the program is given below:-



#include<iostream.h>
#include<conio.h>
void main()
{
          int n;
          clrscr();
          cout<<endl<<"Enter any no.";
          cin>>n;
          cout<<endl<<"The no. is :"<<n;
          getch();
}




if we enter a number preceeding 0 (like 000065 )it gives as o/p 53
and any other no. preeceding 0 does not give proper o/p


Is this problem is internally related or there is some logic behind this


reply mst .........


Go to topic 70625

Return to index page 2
Return to index page 1