write a program to find the sum of four digit integer number in c++
Answers
Answered by
1
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,d,sum=0;
count<<" enter the value of a,b,c and d";
cin>>a>>b>>c>>d;
sum=a+b+c+d;
count<<" sum of four digit integer no. is ="<<sum;
getch();
}
#include<conio.h>
void main()
{
clrscr();
int a,b,c,d,sum=0;
count<<" enter the value of a,b,c and d";
cin>>a>>b>>c>>d;
sum=a+b+c+d;
count<<" sum of four digit integer no. is ="<<sum;
getch();
}
Similar questions
World Languages,
8 months ago
Math,
8 months ago
Science,
8 months ago
Biology,
1 year ago
Science,
1 year ago