felix

how to convert c coding to arduino uno for example resistor colour code.please help me

for example resistor colour code

That is NOT C code. That is a lookup table.

The Arduino is programmed in C++, which is a superset of C. Everything that can be done in C can be done on the Arduino, as long as the code is compatible with the hardware. There is no stdin, no stdout, and no file system, so those parts of C that rely on stdin providing data, stdout consuming data, or FILE providing a place to store data won't work. Nothing else needs converting.

Usually with a ctrl^c and ctrl^v.

Then you use my favorite Arduino technique: Successive Refinement by compiler error.

KeithRB:
Usually with a ctrl^c and ctrl^v.

Then you use my favorite Arduino technique: Successive Refinement by compiler error.

Favorite? Or most common? I prefer to write code that compiles the first time. I think it happened once.

Perhaps you would like to edit your Original Post and change th title to something that tells people what your problem is?

...R