make public

Dependencies:   mbed

main.cpp

Committer:
BertieHarte
Date:
2021-03-26
Revision:
0:5f5548003738

File content as of revision 0:5f5548003738:

#include "mbed.h"
int a = 10; // declare int variable for each of the values from question
int b = 20;
int c = 30;


int main() {
    int d = (a + b); // perform calculation to get int d.
    printf("d = %d \n \r", d); // print result of d.
    int e = (d - c); // perform calculation to get int e.
    printf("e = %d \n \r", e); // print result of e.
    }