- 1
What this said its time out
#include <stdio.h> void sp(r) { } int main() { int r; printf ("how many rows do you want"); scanf("%d",r); sp(r); return 0; }
3 ответов
+ 2
You are coding in C, right?
I think you forgot to put 👉& for your variable in the scanf line.
Your indentation in main() function isn't nice, but that won't stop anything from working.
Also, doesn't a void function still need a 👉return statement?
+ 1
Ok thanks for replying