Untitled
unknown
c_cpp
2 years ago
333 B
56
Indexable
#include <stdio.h>
int main()
{
/* define three variables */
int a, b, sum;
/* get input data */
printf("Enter a: ");
scanf("%d", &a);
printf("Enter b: ");
scanf("%d", &b);
/* compute the sum */
sum = a + b;
/* display the result */
printf("%d + %d = %d", a, b, sum);
return 0;
}
Editor is loading...