Sequential Data


/***********************************************************

  Example Written in C
  Demonstrates proper use of Sequential Data and Controls
  Controls

***********************************************************/

#include < stdio.h >

int main()
{
   /* Define student information */

   char Name[] = "John Smith";
   int StudentNumber = 123456789;
   char Class[] = "CS230 040";
   int Grade = 70;     

   /* Print information in the order it was defined */

   printf("Name: %s\n", Name);
   printf("Student Number: %d\n", StudentNumber);
   printf("Class: %s\n", Class);
   printf("Grade: %d\n", Grade);

   return 0;
}

These pages were edited for style and content by Allan Caine, Laura Drever, Gorana Jankovic, Megan King, and Marie Lewis.
The original authors of these pages were Graeme Humphries, Chantal Laplante, Chris Mills, and Melvin Lenz.

Last Modified: Wednesday, June 7th 23:45:30
Copyright 2000 Department of Computer Science, University of Regina.


[CS Dept Home Page]