#include<stdio.h>int main(){int i=0;int j;scanf("%d",&j);while(i<4){ while(j>0){printf("%c",&c);j--;}j=j-2;int k=1;while(k<=i){printf("%d",k);k++;}int l=1;while(l<i){printf("%d",l);l++;}printf("\n");i++;}}
6
prog.cpp: In function ‘int main()’: prog.cpp:12: error: ‘c’ was not declared in this scope prog.cpp:6: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!