Preview:
#include <stdio.h>

int main() {
    int a;
    int b;
    int c;
    int d;

    printf("input 1st number:\n");
    scanf("%d",&a);
    printf("input 2nd number:\n");
    scanf("%d",&b);
    printf("input 3rd number:\n");
    scanf("%d",&c);

    d=a+b+c;
    printf("result is:%d",d);

    return 0;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter