Program No : 7 :

Write a program in C for relations operations of two given integer numbers ?

     program no  : 7
 purpose : relational operations of two integer numbers.

	#include <"stdio.h">
	void main()
	{
		int one, two;

		scanf("%d%d",&one ,&two);

		if ( one==two)
			printf("first is equal to second");
		else
			{
			  if ( one > two)
				   printf("first is greater than second");
			  else
					printf("first is less than second");
		}
	}  

Back