🔒 Closed Need ko tulong nyo

Status
Not open for further replies.

Megabing213

Eternal Poster
Anong pwedeng idagdag para ilipat yun sa kabila? Newbie palang ako hehehe while loops
 

Attachments

  • Screenshot_Gallery_20181011-220829.png
    Screenshot_Gallery_20181011-220829.png
    23.1 KB · Views: 0
  • Screenshot_CppDroid_20181011-214355.png
    Screenshot_CppDroid_20181011-214355.png
    37.7 KB · Views: 0
Yan paps thanks
 

Attachments

  • Screenshot_Gallery_20181011-220829.png
    Screenshot_Gallery_20181011-220829.png
    23.1 KB · Views: 0
  • Screenshot_CppDroid_20181011-214355.png
    Screenshot_CppDroid_20181011-214355.png
    37.7 KB · Views: 0
Parang ganon nadin po. Gusto kolang kase na malipat poyon sa kabila.
Nanghihingi po kasi yung teaxher namen ng example
 
Yung output ngapo panget hahaha. Baka may alam po kayo kung pano ilagay yun sa kabila paps?
Kung gagamitin ko code mo dapat ganito yun.


Code:
#include <iostream>

using namespace std;

int main()
{
    int day = 1;
    int month = 1;
    int year = 2010;
   
    cout << "Day\tMonth\tYear" << endl;
    while(year <= 2018)
    {
        while(month <= 12)
        {
            while(day <= 31)
            {
                cout<< day << "\t" << month << "\t" << year << endl;
                day++;
            }
            day = 1;
            month++;
        }
        month = 1;
        year++;
    }

    return 0;
}
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 35
    Replies
  • 1K
    Views
  • 5
    Participants
Last reply from:
Megabing213

Online now

Members online
458
Guests online
855
Total visitors
1,313

Forum statistics

Threads
2,275,103
Posts
28,960,649
Members
1,233,594
Latest member
baam
Back
Top