Computer Science, asked by deeputhapa3791, 1 month ago

1. Design an algorithm to add 3 integers and output the result

Answers

Answered by advait2004mane
0

C programming language

int main()

{

int a=20, b=5, c=5, sum;

sum= a+b+c;

    printf ("The sum of three numbers is %d",sum);

return 0;

}

Output:

Sum of three numbers is 30

Explanation:

step 1: START

step2: take three numbers N1,N2 and N3

step3: Add the three number and store the result as sum.

step4: PRINT the value of sum.

step5: STOP

Similar questions