🔒 Closed Need ko tulong nyo

Status
Not open for further replies.

Megabing213

Established
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
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
339
Guests online
837
Total visitors
1,176

Forum statistics

Threads
2,286,938
Posts
29,041,295
Members
1,217,273
Latest member
Ko11ya
Back
Top