Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

Need to write C code to program Ardunio to keep constant flow for belo.docx

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige

Hier ansehen

1 von 2 Anzeige

Need to write C code to program Ardunio to keep constant flow for belo.docx

Herunterladen, um offline zu lesen

Need to write C code to program Ardunio to keep constant flow for below digram
Solution
int main()
{int increment=2;
int input_flow;
float valve_angle;
printf(\"enter the input flow\");
scanf(\"%d\",&input_flow)
printf(\"Enter an angle in degrees: \");
scanf(\"%f\",&valve_angle);
if(valve_angle==180)
{cout<<\"let the flow continue\";
incrementer++;
}
else
{ cout<<\" stop the flow here ,close valve\";
increment--;
}
if(increment==1)
cout<<\" no flow\";
else
cout<<\" let the flow move on\";
}
}
.

Need to write C code to program Ardunio to keep constant flow for below digram
Solution
int main()
{int increment=2;
int input_flow;
float valve_angle;
printf(\"enter the input flow\");
scanf(\"%d\",&input_flow)
printf(\"Enter an angle in degrees: \");
scanf(\"%f\",&valve_angle);
if(valve_angle==180)
{cout<<\"let the flow continue\";
incrementer++;
}
else
{ cout<<\" stop the flow here ,close valve\";
increment--;
}
if(increment==1)
cout<<\" no flow\";
else
cout<<\" let the flow move on\";
}
}
.

Anzeige
Anzeige

Weitere Verwandte Inhalte

Weitere von todd971 (20)

Aktuellste (20)

Anzeige

Need to write C code to program Ardunio to keep constant flow for belo.docx

  1. 1. Need to write C code to program Ardunio to keep constant flow for below digram Solution int main() {int increment=2; int input_flow; float valve_angle; printf("enter the input flow"); scanf("%d",&input_flow) printf("Enter an angle in degrees: "); scanf("%f",&valve_angle); if(valve_angle==180) {cout<<"let the flow continue"; incrementer++; } else { cout<<" stop the flow here ,close valve"; increment--; }
  2. 2. if(increment==1) cout<<" no flow"; else cout<<" let the flow move on"; } }

×