0

Please help me check the loop

After the first loop it will appear ************************************************** printf("Transaction Code (S=sold, P=purchased, X=exit) : Invalid transaction code! *it direct show invalid cannot key in the value printf("Transaction Code (S=sold, P=purchased, X=exit) : **********************'*************************** https://code.sololearn.com/cDhlLXbl68F9/?ref=app

22nd Jan 2021, 10:49 AM
Valid
4 Réponses
+ 4
Line 18: Missing return type for main function Line 44: Add a space before the %c specifier to consume whitespace left in the input buffer scanf(" %c", &txn.code);
22nd Jan 2021, 11:07 AM
Ipang
+ 2
No problem 👌 Oh one more thing, also #include <string.h> to use strcpy() 👍
22nd Jan 2021, 11:16 AM
Ipang
+ 1
Thanks you
22nd Jan 2021, 11:13 AM
Valid
+ 1
Thanks for reminding me😂
22nd Jan 2021, 11:19 AM
Valid