0
Sahi hai kya ye code
2 odpowiedzi
+ 1
Ok
0
1. Modify the data type of your input variables to int as you read them with %d
int a, b, c;
2. Modify reading input ( one input per line I think that is better)
from scanf("%d%d",&a,&b);
to scanf("%d\n %d\n",&a,&b);
Have in mind that the a/b maybe returns float number
so check if c variable should be float
and cast the result as follow :
c = (float) a / b;