Q9) Take a number as an input from the
user from the following program and then display that number.
#include <iostream>
using namespace std;
int main()
{
float num;
cin>>num;
cout<<"The number = "<<num;
return 0;
}
using namespace std;
int main()
{
float num;
cin>>num;
cout<<"The number = "<<num;
return 0;
}
No comments:
Post a Comment