Logo  

CS256 - Fundamentals of Structured Programming

Displaying exercises/e4/solution/h1.c

#include <stdio.h>
/**
 * Make your program output the following "image":

5: #####
2: %%
7: $$$$$$$
4: @@@@

 */

int main(void)
{
  printf("5: #####\n");
  printf("2: %%%%\n");	// Note: Use %% to print a single %
  printf("7: $$$$$$$\n");
  printf("4: @@@@\n");

  return 0;
}