You are on page 1of 2

//

// main.c
// If_switch and loops
//
// Created by Anas on 2014-09-12.
// Copyright (c) 2014 Anas. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
int main(int argc, const char * argv[])
{

int num1=0,num2=0,num3=0;

printf("Enter Numbers\n");

scanf("%d%d%d",&num1,&num2,&num3);

if((num1<num2)&&(num1<num3))

{
printf("\nFirst Number is still less than the second and third number\n"
);
}

else if(num2<num3)

{
printf("\nSecond Number is less than Third number\n");

}

else
{
printf("\nFirst number is larger than second and third number ");
}


/* int counter =0;
while (counter <20)
{
counter+= 3;
printf("While loop\n");

}
*/

/* int count;
for (count=0;count<10;count+=2)
{

printf("Hello, World!\n");
}
*/

return 0;
}

You might also like