Clouds can't be used to generate electricity and windmills don't use clouds either.
One of the following sentences is nonsensical. Which one is it?
(A) "the principle of windmills is to generate electricity by means of a cloud."
(B) "the principle of windmills is to generate electricity by means of the wind."