faradays law of electro magnetic induction

0 votes
asked Nov 8, 2018 by anonymous 1 flag
#include<stdio.h>

int main()

{

float E=0,N,A=0,B,b,T,X=0,Y=0,Z=0,s;

X=b-B;

A=s*s;

Y=A*X;

Z=Y/T;

E=N*Z;

printf("enter the values of \n N,s,B,T,b\n");

scanf("%f%f%f%f%f",&N,&s,&B,&b,&T);

printf("the value of E is %f",E);

return 0;

}

1 Answer

0 votes
answered Mar 25 by (380 points)

Move the data collection before the calculations:

https://onlinegdb.com/HkDjoXdIL

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...