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
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
Chemistry,
5 months ago
English,
5 months ago
Biology,
10 months ago
Science,
10 months ago
Social Sciences,
1 year ago