but when i give for first number 4 and for second number 7 my result is not 11.Code:#include <stdio.h> main() { int a,b,c; c=a+b; printf("give first number:"); scanf("%d",&a); printf("give second number:"); scanf("%d",&b); printf("the result is:"); printf("%d",c); }
the problem is propably the last printf.what is the correct syntax for valid result??