Skip to content

Instantly share code, notes, and snippets.

@mmikhan
Created March 20, 2015 19:36
Show Gist options
  • Save mmikhan/a41fac333c2bfecee635 to your computer and use it in GitHub Desktop.
Save mmikhan/a41fac333c2bfecee635 to your computer and use it in GitHub Desktop.
Write a program using one print statement to print the pattern of asterisks as shown below
//
// main.c
// midterm
//
// Created by Md Mazedul Islam Khan on 3/21/15.
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char * argv[]) {
printf("*\n* *\n* * *\n* * * *\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment