Thursday, January 19, 2012

Wednesday, January 18, 2012

Both Variable's Value ( Same Or Not)

CLICK ON THE IMAGE TO ENLARGE IT... :)


Using this program you can check out

  • First variable value less than Second Variable Value
  • First variable Value greater than Second Variable Value
  • Both Variable's Value same

Add the 2 variable Value

PLEASE ENTER THE 1st VALUE

PLEASE ENTER THE 2nd VALUE

Answer:->


#include< stdio.h >
#include< conio.h >
void main()
{
int n1;
int n2;
int n3;
printf("PLEASE ENTER THE 1st VALUE");
scanf("%d",&n1);
printf("PLEASE ENTER THE 2nd VALUE");
scanf("%d",&n2);
n3=n1+n2;
printf("Answer:->");
printf("%d",n3);
getch();
}

Working With 3 Array


For Loop Example 2

For loop Example 1