5.
#include <stdlib.h>
void br();
void ic();
int main()
{
br();
printf(", ");
ic();
printf("\n");
ic();
printf(",\n");
br();
return 0;
}
void br()
{
printf("Brazil, Russia");
}
void ic()
{
printf("India, China");
}
6.
#include <stdio.h>
#define toes 10
int main()
{
printf("toes是:%d\n",toes);
printf("toes 的平方是:%d\n",toes*toes);
printf("toes的两倍是:%d\n",toes*2);
return 0;
}
8.
#include <stdio.h>
void one_three();
void two();
int main()
{
printf("starting now:\n");
one_three();
printf("done!\n");
return 0;
}
void two()
{
printf("two\n");
}
void one_three()
{
printf("one\n");
two();
printf("three\n");
}
2.0章末练习完成