🔒 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
fSTZ5Skk
XGstjH77
 
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

Trending Topics

Online now

Members online
482
Guests online
3,088
Total visitors
3,570

Forum statistics

Threads
2,305,970
Posts
29,168,832
Members
1,195,530
Latest member
grinchx8
Back
Top