📜 ⬆️ ⬇️

Problem (no malicious intent)

You need to replace exactly one (any) character in the next line, so that it compiles and displays exactly 20 stars:
int main() { int i, n = 20; for (i = 0; i < n; i--) { printf( "*" ); } }

* This source code was highlighted with Source Code Highlighter .

For those who “got a hand” on features of C, the problem, most likely, is not difficult; but there are at least 3 solutions, and if you find one, then this is no reason to relax :) And maybe you will find another fourth, fifth ..?
UPD 1 : The first correct solution offered lostmsu , the other two - steck
Do not read the comments, break the brain!



UPD 2 : These three solutions ( color="white" ):

')

Source: https://habr.com/ru/post/71522/


All Articles