1.1. Sequence Example
sqr.c
#include <stdio.h> double sqr( double x) { return x*x; } int main( void) { double a, b = 2.2; a = sqr(b); printf( "sqr(%g) = %g\n", b, a); return 0; } |
Flowchart for simple sequence of statements |
sqr.c
#include <stdio.h> double sqr( double x) { return x*x; } int main( void) { double a, b = 2.2; a = sqr(b); printf( "sqr(%g) = %g\n", b, a); return 0; } |
Flowchart for simple sequence of statements |