Computer Science, asked by MrX42, 11 months ago

write a program in c Input any four numbers and display sum of these numbers.​

Answers

Answered by shifakhousain16
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 Anonymous
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