#include <iostream>
using namespace std;
struct customer
{
int cstmrnmber;
char name[50];
char address;
double contactno;
double temp;
} c[10];
int main()
{
cout << "Enter information of Customer:\n " << endl;
for(int i = 0; i < 10; ++i)
{
c.cstmrnmber = i+1;
cout << "For Customer number" << c.cstmrnmber << ",\n" << endl;
cout << "Enter the name of Customer: ";
cin >> c.name;
cout << "Enter the Address of Customer: ";
cin >> c.address;
cout << "Enter Contact number: ";
cin >> c.contactno;
cout << "Enter the temperature:";
cin >> c.temp;
cout << endl;
}
cout << "Displaying Information: " << endl;
for(int i = 0; i < 10; ++i)
{
cout << "\nCustomer number: " << i+1 << endl;
cout << "Name: " << c.name << endl;
cout << "Address: " << c.address << endl;
cout << "Contact number: " << c.contactno << endl;
cout << "Enter the temperature:" << c.temp << endl;
}
return 0;
}