after submitting code giving SIGSEGV error segmentation error, then I did checked correct solution which is same as mine … something wrong is here in c intermediate level. problem is ’ How to accept multiple integers on separate lines’
On line 8, you have three
%d instead of 2.
Bro, In line 8 you have used 3 format specifiers “%d” instead of 2
similarly in line 10 you have used only 3 “%d” instead of 4
try to correct them.