Westonci.ca is the best place to get answers to your questions, provided by a community of experienced and knowledgeable experts. Explore thousands of questions and answers from a knowledgeable community of experts on our user-friendly platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.
Sagot :
Answer:
Following are the code to the given question:
#include <iostream>//header file
using namespace std;
int main()//main method
{
int a,b,c,d;//defining integer variable
cout<<"Enter numbers:";//print message
cin>>a>>b>>c>>d;//input numbers
int sum=a+b+c+d;//add value in sum variable
cout<<"4 number sum is:"<<sum;//print sum
return 0;
}
Output:
Please find the attachment file.
Explanation:
In the program inside the main method 4 integer variable "a,b,c, and d" is declared that uses the print method to input the value from the user-end and after accepting the value an integer variable "sum" is declared that adds all input values and use a print method that prints the value with the message.

We hope this was helpful. Please come back whenever you need more information or answers to your queries. We appreciate your time. Please revisit us for more reliable answers to any questions you may have. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.