Write a program to find the quotient of two numbers using Arduino IDE. (a=21 and b=3)
Answers
Answered by
0
Answer:
int x = 0;
x = 7 % 5; // x now contains 2
x = 9 % 5; // x now contains 4
x = 5 % 5; // x now contains 0
x = 4 % 5; // x now contains 4
x = -4 % 5; // x now contains -4
x = 4 % -5; // x now contains 4
/* update one value in an array each time through a loop */
int values[10];
int i = 0;
void setup() {}
void loop() {
values[i] = analogRead(0);
i = (i + 1) % 10; // remainder operator rolls over variable
}
Explanation:
Answered by
0
Answer:
this is the answer hope it helps you
Attachments:
Similar questions
Math,
8 days ago
Math,
8 days ago
Math,
17 days ago
Hindi,
17 days ago
Social Sciences,
9 months ago