Write a program to initialize 4 integer numbers. Calculate Sum and Print it.
#include <iostream>
using namespace std;
int main()
{
int a=56, b=47,c=37, d=36;
int sum=0;
sum =a+b+c+d;
cout <<"The sum is:"<<sum<< endl;
return 0;
}
Comments
Leave a comment