ПЕРЕВОРОТ

#include "stdafx.h" #include <stdio.h> #include <stdbool.h> #include <math.h> bool per(int i) { char buf; scanf("%c", &buf); if (buf != '\n') { if (i != 1){ per(i - 1); printf("%c", buf); } else { printf("%c", buf); return true; } } else return false; } void povt() { if (per(5) == true) povt(); } void main() { char buf; povt(); scanf("%c", &buf); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.