C primer plus 第六版 第六章 第六题 编程练习答案

版权声明:转载请注明来源~ https://blog.csdn.net/Lth_1571138383/article/details/83188803

Github地址:φ(>ω<*) 这里这里。

#include<stdio.h>
int main(void)
{
	int get_1 = 0;  // Save value
	int get_2 = 0;  // Save value
	char n = '\n';

	printf("Please input the mix and the max value (Press Enter to continue):");
	scanf("%d  %d", &get_1, &get_2);
	putchar(n);

	for(n = '\n'; get_1 <= get_2; get_1++ )
	{
		printf("%5d %5d %5d", get_1, get_1 * get_1, get_1*get_1*get_1 );
		putchar(n);
	}

	getchar();
	getchar();
	return 0;
}

猜你喜欢

转载自blog.csdn.net/Lth_1571138383/article/details/83188803