Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
CPTTRN_2
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//gcc 5.4.0 #include <stdio.h> int main(void) { int t,tc,i,j,row,col; scanf("%d",&tc); for(t=1;t<=tc;t++) { scanf("%d %d",&row,&col); for(i=1;i<=row;i++) { for(j=1;j<=col;j++) { if(i==1||j==1||j==col||i==row) { printf("*"); } else { printf(".");} } printf("\n"); } } printf("\n"); return 0; }
gcc
3 3 1 4 4 2 5
Show compiler warnings
[
+
] Compiler args
[
-
]
Show input
Compilation time: 0.13 sec, absolute running time: 0.13 sec, cpu time: 0.05 sec, memory peak: 3 Mb, absolute service time: 0,35 sec
edit mode
|
history
|
discussion
* * * **** *..* *..* **** ***** *****