Difference between revisions of "Principles of Computer Programming"

From David Vernon's Wiki
Jump to: navigation, search
(Created page with "Here are some code segments for the examples in the course on [http://vernon.eu/courses.htm#pcp principles of computer programming]. /* Example 1...")
(No difference)

Revision as of 11:26, 27 January 2017

Here are some code segments for the examples in the course on principles of computer programming.

/* Example 1                                       */
/* This is a C program to ask you to type a letter */
/* and then to tell you what you typed             */
#include <stdio.h>
main() { 
   char letter;
   printf(“Please type a letter & then press Return >>”);
   scanf(“%c”,&letter);
   printf(“You typed the letter %c”, letter);

}