Suva Programming
Blog about C++ and other programming source code.
Pages
Home
Privacy Policy
Disclaimer
Tuesday 28 January 2020
cpp program to convert days into months and days
Source Code:
#include<iostream>
using namespace std;
int main()
{
int days,month;
cout<<"Enter the number of days: ";
cin>>days;
month=days/30;
days=days%30;
cout<<"Months = "<<month<<endl;
cout<<"Days = "<<days<<endl;
return 0;
}
Program Output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment