1.
#include<stdio.h>
#include<stdlib.h>
void main(){
int l_count=1;
mark:
printf("第%d次,我热爱编程\n",l_count)
l_count++;
if(l_count<6){
go to mark;
}
system("pause");
}
2.
#include<stdio.h>
#include<stdlib.h>
void main(){
for(size_t i=1; i<6: i++){
printf("第%d次,我热爱编程\n",i);
}
system("pause");
}
3.
#include<stdio.h>
#include<stdlib.h>
void main(){
int l_sum=0
for(size_t i=1, i<6: i++){
int l_sum=int l_sum+i
}
printf("sum is %d\n",l_sum);
system("pause");
}
原文:http://www.cnblogs.com/lenaben/p/7147930.html