Skip to content

Opening book details…

About this document

Declare Int Constant for Months in Year by MishaalKhan is a document available to read on EtoBox.

Here are programs to solve the given assignments: 1) #include <iostream> using namespace std; int main() { int year = 2022; int months = 12; cout << "Number of months in " << year << " is " << months; return 0; } 2) #include <iostream> using namespace std; int main() { int a, b, c; int sum, average; a = 10; b = 20; c = 30; sum = a + b + c; average = sum / 3; cout << "Sum is " << sum << endl;

Author
MishaalKhan
Language
EN