[source code] C Programming Tutorial - 27 - for Loops

+4 Bucky Roberts · August 7, 2014



#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>


int main()
{
   int bacon;


   for(bacon=1; bacon<=10; bacon++){
       printf("Bacon is %d \n", bacon);
   }


   //can also count by 8's using bacon +=8


   return 0;
}


Post a Reply

Replies

Oldest  Newest  Rating
0 Ass Cold · October 26, 2014
How do I find out how many total #include are in C language? (the one already build inside).
and how do I know the meaning of each one... I can't find the answer online
basically I want to know all the # word... hope you can understand me
+1 Горан Куга · October 26, 2014

How do I find out how many total #include are in C language? (the one already build inside).
and how do I know the meaning of each one... I can't find the answer online
basically I want to know all the # word... hope you can understand me


Hey buddy, you can find everything you want on this site  http://www.java2s.com/Tutorial/C/CatalogC.htm.
+1 Ass Cold · October 27, 2014
Goran K 
Idk how to reply for saying thank you, but this website are perfect, much better than w3school
  • 1

C

126,595 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator