Tutor

Free Ressources:  by ELJAICompany:




Printing Welcome to C!!!


Introduction to variables through adding two integers

 

Comments In C  

 

If statement Decison 

 

If and Else   HMMMMM ,  it smells a quiz or maybe a midterm.  


 

  Very intresting trick.  

 Exercice 2.26:

 instead of writing the following code to eache line:    Printf("%d\t%d\t%d\n", 2,2*2,2*2*2);   I took 2 as an Example.

writre  the following code for the first line " ex:  for the number 0 "     
   n=0;
   Printf("%d\t%d\t%d\n",n,n*n,n*n*n);
   n=n+1;
 Once you have done that, keep cutting and pastting the second and third line.
your final code should be as follows:

#include<stdio.h>
int main()
{
int n;
n=0;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
n=n+1;
printf("%d\t%d\t%d\n",n,n*n,n*n*n);
return 0;
}
Do not just copy the code, please try to understand it, otherwhise it would be useless.


The    while function;   one of the  most intresting functions within C language.
 
Don't worry and get confused ""loopcount=counter.""


Introduction to Functions. 



Random Number. 



Seeding Random. 



Switch Statement.  



Introduction to Arrays.  




Simple Array Program. 



I am done with CMP 130.

Now the ball is in your side.


Good Luck for your Exams.

J Academy.