C++ Program To Read a Value And Print It
/*C++ Program To Read a Value And Print It*/
/*For Integer*/
#include<iostream>
using namespace std;
int main()
{int i;
cout<<"Enter The Value Of Interger:--";
cin>>i;
cout<<"Value Of Integer You Entered:--"<<i;
return 0;
}
/*C++ Program To Read a Value And Print It*/
/*For Integer*/
#include<iostream>
using namespace std;
int main()
{int i;
cout<<"Enter The Value Of Interger:--";
cin>>i;
cout<<"Value Of Integer You Entered:--"<<i;
return 0;
}
/*For Floating Points (Decimal)*/
#include<iostream>
using namespace std;
int main()
{float i;
cout<<"Enter The Value Of Float(Decimal):--";
cin>>i;
cout<<"Value Of Float(Decimal)You Entered:--"<<i;
return 0;
}
/*For Character Value*/
#include<iostream>
using namespace std;
int main()
{float i;
cout<<"Enter The Value Of Float(Decimal):--";
cin>>i;
cout<<"Value Of Float(Decimal)You Entered:--"<<i;
return 0;
}
0 Comments