If a=5 b=25 n=4, why output is zero?
#include <stdio.h> int main() { int a,b,n; float result; printf("First value=\n"); scanf("%d",&a); printf("Second value=\n"); scanf("%d",&b); printf("Select\n\t1.Summaton\n\t2.Substraction\n\t3.Multiplication\n\t4.Division\nChoose an option=\n"); scanf("%d",&n); switch(n) { case 1: result=a+b; printf("Summation=%f\n",result); break; case 2: result=a-b; printf("Substraction=%f\n",result); break; case 3: result=a*b; printf("Multiplication=%f\n",result); break; case 4: result=a/b; printf("Division=%f\n",result); break; default : printf("Wrong option"); } return 0; }