2-3
C
/*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
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.