🔒 Closed Pahelp naman po

Status
Not open for further replies.

Jirachi2016

Established
20201114_144446.webp
 
#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;
}
 
#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;
}
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 8
    Replies
  • 321
    Views
  • 4
    Participants
Last reply from:
homer_simpson

Online now

Members online
974
Guests online
1,164
Total visitors
2,138

Forum statistics

Threads
2,276,177
Posts
28,968,075
Members
1,231,155
Latest member
4rchiv3s
Back
Top