编写一个程序,要求输入自变量的值,输出函数的值,例如y=3x+7

如题所述

#include <stdio.h>
int main {
int x, y;

scanf("please input value:%d", x);
y = x * 3 + 7;
printf("result is %d\n", y);
return 0;

}
温馨提示:答案为网友推荐,仅供参考
相似回答