Commonly used code of c language-1:

1. Use the method of calling function to test the learned code when testing exercises:

#include<stdio.h>



void f1(void)
{
    
    
    for(int a=10;a<20;a=a+1)
    {
    
    
        printf("a的值为:%d\n",a);

    }


}




int main()
{
    
    
    f1();

    return 0;


}

Guess you like

Origin blog.csdn.net/wtt234/article/details/113376464