+ 1
What mistake this programme
#include <stdio.h> int main() { int a,b,sum; printf("Enter two integer number:"); scanf("%d%d",&a,&b); sum==(a+b); printf("%d is the summation",sum); return 0; }
2 Answers
+ 3
Not is sum== (a+b).
You are trying to compare the values, the correct thing is that you should assign the values ââto the sum variable.
The correct is :
sum= a +b ;
+ 3
#include <stdio.h>
int main() {
int a,b,sum;
printf("Enter two integer number:");
scanf("%d%d",&a,&b);
sum=a+b;
printf("%d is the summation",sum);
return 0;
}