IHYPRESS PROGRAMMING
Tutorials and C programs with code and output for beginners
c programming
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
COverview of C : Charcter Input
<01.04>
/* This program reads four characters */
#include <stdio.h> int main (void) { /* declarations */ char letter1, letter2, letter3, letter4; printf ("Enter a name: "); scanf ("%c%c%c%c", &letter1, &letter2, &letter3, &letter4); printf ("You entered: %c%c%c%c", letter1, letter2, letter3, letter4); printf (" / Backwards: %c%c%c%c\n", letter4, letter3, letter2, letter1); return (0); }
Hergestellt in Deutschland / Made in Germany
Enter a name: Lucy You entered: Lucy / Backwards: ycuL
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland