C语言输出程序运行时间

以以前的四平方和那题为例子:

题目链接:https://www.6k8k.top/post/92.html

输出结果:

C语言输出程序运行时间_第1张图片

#include
#include 
int main(){
	int n;
	int a,b,c,d;
	clock_t start,finish; // 定义变量
	double time;            // 
	scanf("%d",&n);
	start=clock();     //开始
	for(a=0;a*a 
   


你可能感兴趣的:(C语言输出程序运行时间)