Write a C++ program using a lambda with value capture (`[=]`) to add a scaling factor to an input value.
Multiplier factor F and integer X.
Print the product of F and X.
-1000 <= F, X <= 1000
5 10
50
Value capture copies external variables into the lambda scope safely.
#include <iostream>
int main() {
int factor, x;
if (std::cin >> factor >> x) {
// Write your value capture lambda logic here
}
return 0;
}Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used