write a program in c Input any four numbers and display sum of these numbers.
Answers
Answered by
1
Explanation:
#include<iostream.h>
#include<iomanip.h>
#include<string.h>
struct djstance
void majn()
{
a=(2 )
b =(3)
c =(4)
d=(5)
sum a,b,c,d;
cout <<Enter 4 numbers >>;
cin>>a+b+c+d>>sum;
getch();
}
Answered by
2
Answer -
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,sum;
clrscr();
printf ("enter any four numbers");
scanf("%d%d%d%d",&a,&b,&c,&d);
sum= a+b+c+d;
printf(Sum=%d",sum);
getch();
}
Similar questions
Math,
5 months ago
English,
5 months ago
History,
5 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago
Biology,
1 year ago
Science,
1 year ago