/*Write program to take 6 integers form user and display their sum*/
#include<iostream>
using namespace std;
int main(){
int a,b,c,d,e,f;
cout<<"Enter 6 integer:";
cin>>a>>b>>c>>d>>e>>f;
int sum=a+b+c+d+e+f;
cout<<sum;
return 0;}
/*Write program to take 6 integers form user and display their sum*/
#include<iostream>
using namespace std;
int main(){
int a,b,c,d,e,f;
cout<<"Enter 6 integer:";
cin>>a>>b>>c>>d>>e>>f;
int sum=a+b+c+d+e+f;
cout<<sum;
return 0;}
0 Comments had been done yet:
Post a Comment