Write the output for the following C++ program.
Assume the values for age as 23, height as 161.5 and weight as to
#include <iostream>
using namespace std;
struct Student
int age;
float height weight;
obj;
int main()
cout<<"\nEnter the age:";
cin>>obj.age;
cout<<"\nEnter the height:",
cin>>obj.height;
cout<<"\nEnter the weight:";
cin>>obj.weight;
cout<<"\nYour details :",
cout<<"\nAge:"<<obj.age;
cout<<"\nHeight:"<<obj.height;
cout<<"\tWeight:"<<obj.weight;
return 0;
Answers
Answered by
2
ANSWER:
The output is as follows:
Enter the age: 23
Enter the height: 161.5
Enter the weight: 52
Your details :
Age : 23
Height : 161.5 Weight : 52
Similar questions