Web Page - http://www.cs.tau.ac.il/~efif/courses/ComputerProgramming
/* This program prints a list of integers, from 0 to 9 */ #include <stdio.h> int main (void) { int i; for (i = 0; i < 10; i = i + 1) printf ("i is %d\n", i); return 0; } |
/* This program prints a list of integers, from 0 to 9 */ #include <stdio.h> int main (void) { int i; for (i = 0; i < 10; i = i + 1) printf ("i is %d\n", i); return 0; } |
/* This program prints a list of integers, from 0 to 9 */ #include <stdio.h> int main (void) { int i; for (i = 0; i < 10; i = i + 1) printf ("i is %d\n", i); return 0; } |
/* This program prints a list of integers, from 0 to 9 */ #include <stdio.h> int main (void) { int i; for (i = 0; i < 10; i = i + 1) printf ("i is %d\n", i); return 0; } |
/* This program prints a list of integers, from 0 to 9 */ #include <stdio.h> int main (void) { int i; for (i = 0; i < 10; i = i + 1) printf ("i is %d\n", i); return 0; } |
/* This program prints a list of integers, from 0 to 9 */ #include <stdio.h> int main (void) { int i; for (i = 0; i < 10; i = i + 1) printf ("i is %d\n", i); return 0; } |
/* This program prints a list of integers, from 0 to 9 */ #include <stdio.h> int main (void) { int i; for (i = 0; i < 10; i = i + 1) printf ("i is %d\n", i); return 0; } |
/* This program prints a list of integers, from 0 to 9 */ #include <stdio.h> int main (void) { int i; for (i = 0; i < 10; i = i + 1) printf ("i is %d\n", i); return 0; } |
i is 0
i is 1
i is 2
etc.
/* This program prints a list of integers, from 0 to 9 */ #include <stdio.h> int main (void) { printf ("i is 0\n"); printf ("i is 1\n"); printf ("i is 2\n"); printf ("i is 3\n"); printf ("i is 4\n"); printf ("i is 5\n"); printf ("i is 6\n"); printf ("i is 7\n"); printf ("i is 8\n"); printf ("i is 9\n"); return 0; } |
/* * Print a Fahrenheit-to-Celsius * conversion table */ #include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |
#include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |
#include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |
#include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |
#include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |
#include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |
#include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |
#include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |
#include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |
#include <stdio.h> int main (void) { int fahr; int celsius; int lower = 0; int upper = 300; int step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr 32) / 9; printf ("%d\t%d\n", fahr, celsius); fahr = fahr + step; } return 0; } |