Part Number: LAUNCHXL2-570LC43
Other Parts Discussed in Thread: HALCOGEN,
Hello people,
I have tried some of very basic examples in CCS ( like adding, subtracting of two nos etc ). I have used #include <stdio.h> and got the output in the console.
The main file is shown below:
int x, y, sum;
printf("Enter 1st no: ");
scanf("%d", &x);
printf("Enter 2nd no: ");
scanf("%d", &y);
sum = x + y;
printf("Sum of %d and %d is %d", x, y, sum);
I have to do the same but the output should be shown at Serial terminal. What datatype for variables should be used, what functions should be used to diplay the message and receive the nos?
Please help
Best Regards,
Advath
