How to make a program that contains all of these: struct, nested loop, and recursive

I have tried to make it but it stuck on here. The main problem is how to make a single program using struct, nested loop, and recursive

#include <iostream>
using namespace std;

struct team{
    char club[30];
    int point;
    int goal;

    team m[3];
    cout<<"Learning Struct CPP \n\n";

    for (int i=0; i<1; i++){

        cout<<"INPUT CLUB'S NAME : ";

        cout<<"INPUT CLUB'S POINT : ";

        cout<<"INPUT CLUB'S GOAL : ";

    for (int i=0; i<1; i++){

        cout<<"CLUB'S NAME : "<<m[i].club<<endl;
        cout<<"CLUB'S POINT : "<<m[i].point<<endl;
        cout<<"CLUB'S GOAL : "<<m[i].goal<<endl<<endl;
   return 0;

Can someone help me for this?

Read more here:

Content Attribution

This content was originally published by Muhammad Syalfatur Virga at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: