+ 1

What's problem of this code

#include<stdio.h> main(){ int a,b,sum; printf("Enter two integer value:"); scanf("%d%%d",&a,&b); sum=a+b; printf("\nsum=%d",sum); }

11th Aug 2019, 3:10 AM
Tanjim Ahmed
Tanjim Ahmed - avatar
4 Respostas
+ 5
You have 2 % signs before the second %d
11th Aug 2019, 3:21 AM
Pete Cowling
Pete Cowling - avatar
+ 3
Please Tag 'C' instead of 'g' ... (Edit) Tag was adjusted by moderator, OP didn't care. https://www.sololearn.com/Discuss/333866/?ref=app
11th Aug 2019, 6:29 AM
Ipang
+ 1
Thanks peter c.. and~swim~
11th Aug 2019, 3:29 AM
Tanjim Ahmed
Tanjim Ahmed - avatar