私はこの言語に不慣れで、このオーバーフローの問題と整数型のすべてに神経質になっています。ここに私が持っているものがありますが、実行すると、
-bash: syntax error near unexpected token `newline'
コード:
#include <stdio.h>
int main(void)
{
int one, two, s, q, m;
s = one+two
q = one/two
m = one*two
printf("Enter first positive integer: ");
scanf("%d", &one);
printf("Enter second positive integer: ");
scanf("%d", &two);
printf("The addition of %d and %d is %d", one, two, s);
printf("The integer division of %d divided by %d is %d", one, two, q);
printf("the multiplication of %d and %d is %d", &one, &two, m);
return 0;
}
ありがとうございました