我在下面的编码中有Lvalue错误请帮我解决这个错误

问题描述:

/* c program to find multiplication table up to 10. */
#include <stdio.h>
int main ()
{
    int n, i;
    printf("Enter an integer to find multiplication table: ");
    scanf("%d",&n);
    for((i=1);i<=10;++1)
    {
	 printf("%d * %d = %d\n", n, i, n*i);
    }
    return 0;
 }</stdio.h>

在这一行中

In this line
for((i=1);i<=10;++1)



你试图增加常数(L值)数 1

它应该是变量 i 而不是。