0
What's mistake of this programme
#include <stdio.h> int main() { int a,b,sum,multipication; float Division; printf("Enter two integer number:"); scanf("%d%d",&a,&b); sum=a+b; multipication=a*b; Division=a\b; printf("\n%d is the summation",sum); printf("\n%d is the multipication ",multipication ); printf("\n%2f is the Division",Division); return 0; }
2 Answers
+ 3
Division is /, not \
Edit. You might want to cast to float the divison result as you are dividing two integers. Division = (float)a/b
+ 3
Please include a relevant language in your question tags to improve context clarity -> C Language đ