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; }
11 odpowiedzi
+ 1
yes, it works now.. thank you very much brother.
0
can you plz type the right code?? plz
0
i tried too much but i can't.
0
can we friend??
- 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;
}