Computer Science, asked by diwakarmass123456, 10 months ago

Write the output for the following C++ program
Assume the values for age as 23, height as 161.5 and weight as 45.
#include <iostream>
using namespace std;
struct Student
int age;
float height weight;
Jobj;
int main()
cout<<"\nEnter the age:";
cin>>obj.age;
cout<<"\nEnter the height:";
cin>>obj.height;
cout<<"\nEnter the weight:";
cin>>obj.weight;
cout<<"\n Your details :";
cout<<"\nAge :"<<obj.age;
cout<<"\nHeight:"<<obj.height;
cout<<"\tWeight:"<<obj.weight;
return 0;​

Answers

Answered by sanjaiy2003
1

Answer:

Enter the age:a

Enter the height:b

Enter the weight:c

Your details:

Age:a

Height:b

Weight:c

Explanation:

let the age is a,height is b,weight is c

Similar questions