输出_第一类
C语法:
{
....
printf("%d\n",ans);
}
{
...
cout << ans << endl;
}
Java语法:
{
...
System.out.println(ans);
}
输出_第二类
{
....
printf("%d\n\n",ans);
}
{
...
cout << ans << endl << endl;
}
Java语法:
{
...
System.out.println(ans);
System.out.println();
}
输出_第三类
for (k=0;k<count;k++)
{
while (…)
{
printf("
%d\n",result);
}
if (k!=count-1) printf("\n");
}
原文:http://www.cnblogs.com/djl5880/p/4780827.html