Friday, 10 November 2017

C Program using if else control instructions


Code:

#include

main()
{
   int x = 1;

   if ( x == 1 )
      printf("x is equal to one.\n");
   else
      printf("For comparison use == as = is the assignment operator.\n");

   return 0;
}

Output:

x is equal to one.


More Imp Topics:

C hello world program
C program to take input from user using scanf
C program looping
C program for prime number
C program for command line arguments
Simple C array program
Simple C function program
 C program using structures
C program for Fibonacci series
C graphics programming

100+ Best Home Decoration Ideas For Christmas Day 2019 To Make Home Beautiful

Best gifts for Christmas Day | Greeting cards for Christmas Day | Gift your children a new gift on Christmas day This Christmas d...