What's new
  • Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Help C and C++ Need ko tulong nyo

Megabing213

Enthusiast
Joined
Mar 18, 2018
Messages
125
Reaction score
14
, Last edited:
Anong pwedeng idagdag para ilipat yun sa kabila? Newbie palang ako hehehe while loops
 

Attachments

mrHazan

Eternal Poster
San po maganda iupload image? Need daw image url e
Diretso dito? Hindi pwede?
 

Megabing213

Enthusiast
Parang ganon nadin po. Gusto kolang kase na malipat poyon sa kabila.
Nanghihingi po kasi yung teaxher namen ng example
 

mrHazan

Eternal Poster
, Last edited:
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;
}
 

Trending On This Forum

New Topics On This Forum

Top