15 lines
300 B
C
15 lines
300 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int main(void)
|
|
{
|
|
int a,b,c,sum; /* Define variables */
|
|
a = 1; /* Assign values */
|
|
b = 2;
|
|
c = 3;
|
|
sum = a + b + c ; /* Calculate sum & Display */
|
|
|
|
printf ("\nThe sum of %d + %d + %d is %d \n", a, b, c, sum);
|
|
|
|
return 0; /* Return from prog */
|
|
}
|