Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Print the following three lines on the console:
- *
- ***
- *****
- void print_line(int N) {
- for (int i = 0; i < N; i++) {
- putchar('*');
- }
- putchar('n');
- }
- int main(int argc, char * argv[]) {
- for (int i = 1; i <=3; i++) {
- print_line(2 * i - 1);
- }
- return 0;
- }
- printf("*n");
- printf("***n");
- printf("*****n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement