This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/LC5/printf_example.c

15 lines
300 B
C
Raw Normal View History

2022-04-07 15:58:01 +00:00
#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 */
}