我是这门语言的新手,所有这些溢出问题和整数类型都让我很紧张。这就是我所拥有的,但是当我运行它时,我得到了,
-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;
}
谢谢