functions/without-func-proc.c - Samme program - uden brug af funktioner og procedurer. | Lektion 5 - slide 2 : 30 Program 2 |
#include <stdio.h> int main(void) { int i = 1; double a = 0; printf("par + par = %d + %d = %d\n", 5, 5, 5 + 5); while(i < 5){ printf("par + par = %d + %d = %d\n", i, i, i+i); ++i; } a = 3*3 + 4*4; if (5*5 + 6*6 < 100) printf("Yes\n"); else printf("No\n"); }