Art
Lesson 18 of 25 in Coddy's Coding Problems: Volume 2 course.
Using the symbols @, %, and . . You are given a task to create a painting. The length and width of the painting will be given as a whole number and you should draw the given pattern
%@@@@@%
%.....%
%.....%
%.....%
%.....%
%.....%
%@@@@@%Challenge
EasyWrite a program that reads the length and width of the painting as a natural number from standard input. As a result, output the wanted pattern for the painting
Input
7
Output
%@@@@@%
%.....%
%.....%
%.....%
%.....%
%.....%
%@@@@@%Try it yourself
#include <stdio.h>
int main() {
// Write code here
return 0;
}All lessons in Coding Problems: Volume 2
1Course Introduction
Introduction