0

Why this code doesn't work? Plz help me!!

#include <stdio.h> #include <conio.h> int main() { int a, b, sub; printf("Enter the value: "); sub= a - b; scanf("%d", &a); scanf("%d", &b); printf("a= %d; \t", a); printf("b= %d; \n", b); printf("a - b = %d - %d = %d", a, b, sub); return 0; }

19th Mar 2019, 5:02 PM
Abdul Kader Zilani
Abdul Kader Zilani - avatar
11 Respostas
+ 1
yes, it works now.. thank you very much brother.
19th Mar 2019, 5:39 PM
Abdul Kader Zilani
Abdul Kader Zilani - avatar
0
can you plz type the right code?? plz
19th Mar 2019, 5:12 PM
Abdul Kader Zilani
Abdul Kader Zilani - avatar
0
i tried too much but i can't.
19th Mar 2019, 5:29 PM
Abdul Kader Zilani
Abdul Kader Zilani - avatar
0
can we friend??
19th Mar 2019, 5:44 PM
Abdul Kader Zilani
Abdul Kader Zilani - avatar
- 1
#include <stdio.h> #include <conio.h> int main() { int a, b, sub; sub= a-b; printf("Enter the value: "); scanf("%d", &a); scanf("%d", &b); printf("a= %d; \t", a); printf("b= %d; \n", b); printf("a - b = %d - %d = %d", a, b, sub); return 0; }
19th Mar 2019, 5:31 PM
Abdul Kader Zilani
Abdul Kader Zilani - avatar