导入工程
将以下汇编语言翻译成C语言
C语言表示
//MainLoopNUM为主循环次数设定值
//当mMainLoopCount到达设定值,跳出循环执行后续代码
for(int mMainLoopCount=0; mMainLoopCount<MainLoopNUM; mMainLoopCount++)
{
}
编写一个1+2+...+10的程序,将求和结果存入名为“sumresult”的内存单元中,并将求和结果用printf显示出来
添加以下代码
编译并查看运行结果
C语言表示
//MainLoopNUM为主循环次数设定值
//当mMainLoopCount到达设定值,跳出循环执行后续代码
for(int mMainLoopCount=0; mMainLoopCount<MainLoopNUM; mMainLoopCount++)
{
}
添加以下代码
编译并查看运行结果