English, asked by tripathysneha703, 3 months ago

write
a c
program for addition of two numbers
with flowchart and print the
result.​

Answers

Answered by Anonymous
3

Answer:

Log in to add comment

Answer

5.0/5

21

Brainly User

Answer -

Algorithm-

step 1 : start

step 2 : input a,b

step 3 : sum=a+b

step 4 : print sum

step 5 : end

Flow chart -

A flow chart is a graphical representation of the information of the structure of a problem.

The flow chart to add Two numbers is in the attachment.

Program -

#include<stdio.h>

#include<conio.h>

void main ()

{

int a,b,sum=0;

clrscr();

printf("Enter any two numbers");

scanf("%d%d",&a,&b);

sum = a+b;

printf ("Sum=%d",sum);

getch();

}

Attachments:
Similar questions