- 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; }

11th Jan 2022, 9:10 AM
Bong Rush Gaming YT
3 Answers
+ 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?
11th Jan 2022, 9:48 AM
HungryTradie
HungryTradie - avatar
+ 1
Ok thanks for replying
11th Jan 2022, 9:57 AM
Bong Rush Gaming YT