2-3

j20252119 · updated April 20, 2026
/*E2-3*/
/*2数の和と差*/
#include <stdio.h>
int main() 
{
    int a,b,wa,sa;
    a=20;
    b=5;
    wa=a+b;
    sa=a-b;
    printf("%d + %d = %d\n",a,b,wa);
    printf("%d - %d = %d\n",a,b,sa);
    return 0;
}
Output

Comments

Please sign up or log in to contribute to the discussion.