#include <stdio.h>
/* Counting example */
int main(int argc, char** argv) {
int i;
// This counts from 0 to 9.
for (i = 0; i < 10; i++) {
printf("Counting %d\n", i);
}
}
Kodprover
Om inget annat anges får innehållet på den här sidan användas i enlighet med licensen Creative Commons Attribution 4.0, och exempelkod får användas i enlighet med licensen Apache 2.0. Mer information finns i Google Developers webbplatspolicyer. Java är ett registrerat varumärke som tillhör Oracle och/eller dess partner.
Last updated 2024-11-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Translation issue","translationIssue","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-30 UTC."],[],[]]