我正在使用Linux,当我尝试使用此代码显示时:
#include <stdio.h>
#include <math.h>
int main()
{
int a,b,c;
int result;
printf( "How Many Times Would You Like to Add: ");
scanf( "%d", &a );
//getchar();
printf( "What Number Would You Like to Add: ");
scanf( "%d", &b );
//getchar();
printf( "What Number Would You Like to Add to It?: ");
scanf( "%d", &c );
//getchar();
for( int $i = 0; $i < a; $i++ )
{
result = b + c;
printf( "%d", &result );
printf( "\n" ); …
Run Code Online (Sandbox Code Playgroud)