wi*********@gmail.com opined:
how to print the follow one:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
........................
In ISO Standard C, it's fairly easy:
#include <stdio.h>
int main(void)
{
printf("1\n");
printf("1 1\n");
printf("1 2 1\n");
printf("1 3 3 1\n");
printf("1 4 6 4 1\n");
printf("1 5 10 10 5 1\n);
printf("........................\n");
return 0;
}
Or did you mean algorithmically? In which case:
- this is a wrong group, try comp.programming
- a fee is chargeable for doing homeworks
--
BR, Vladimir
I guess I've been wrong all my life, but so have billions of
other people... Certainty is just an emotion.
-- Hal Clement