1. Design an algorithm to add 3 integers and output the result
Answers
Answered by
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