Tuesday, 3 July 2018

how to calculate the sum of three variables in c++

Write a programm that store three values in integer type of variables and display it sum
 solution

#include <iostream>
using namespace std;

int main() {
int a=22;
int b=33;
int c= 44;
        int sum;
         sum =a+b+c;
cout<<"The sum is "<<sum;

return 0;
}

No comments:

Post a Comment