Computers and Technology, 08.02.2021 19:10 rainbowmc6
Write a piece of codes that asks the user to enter a month (an integer), a day (another integer), and a two-digit year. The program should then determine whether the month times the day is equal to the year. If so, it should display a message saying the date is magic. Otherwise, it should display a message saying the date is not magic.
#include
using namespace std;
int main()
{
int day;
int month;
int year;
cout<<"enter year"<
cin>>year;
cout<<"enter day"<
cin>>day;
cout<<"enter month"<
cin>>month;
//programology..
if(month*day==year)
{
cout<<"its magic programology year"<
}
else
{
cout<<"its not magic year"<
}
}
Answers: 3
Computers and Technology, 21.06.2019 17:00
In microsoft word, you can change the look of paragraphs by:
Answers: 1
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
Computers and Technology, 24.06.2019 03:30
It is not necessary to develop strategies to separate good information and bad information on the internet. true or false
Answers: 1
Computers and Technology, 24.06.2019 08:30
Why might you choose to create a functional resume
Answers: 1
Write a piece of codes that asks the user to enter a month (an integer), a day (another integer), an...
Mathematics, 27.08.2019 15:30
Mathematics, 27.08.2019 15:30
Chemistry, 27.08.2019 15:30
Biology, 27.08.2019 15:30
Social Studies, 27.08.2019 15:30
Social Studies, 27.08.2019 15:30
Geography, 27.08.2019 15:30
History, 27.08.2019 15:30