as the program say:
break_test.c
#include<stdio.h>
int main(int argc, char *argv[])
{
int square, i;
for(i = 1; i <= 100; i++)
{
square = i * i;
if(square > 100)
break;
printf("%d * %d = %d\n ",i, i, square);
}
printf("But, i want to sprintf 1*1~10*10, beacause of break, so, it go out advance.....\n");
}
Makefile
make :
gcc -o break_test break_test.c
clean :
rm -rf break_test
The Results: [root@localhost break_test]# ./swit_test
1 * 1 = 1
2 * 2 = 4
3 * 3 = 9
4 * 4 = 16
5 * 5 = 25
6 * 6 = 36
7 * 7 = 49
8 * 8 = 64
9 * 9 = 81
10 * 10 = 100
But, i want to sprintf 1*1~10*10, beacause of break, so, it go out advance.....
Now, i did not thought it can do sth, so , it's just test!