C

Friday, 18 August 2017

Program To Perform Relational Operator

#include<stdio.h>
#include<conio.h>
main()
{
int x,y,z;
clrscr();
printf("Enter the values of x,y and z\n");
scanf("%d%d%d,",&x,&y,&z);
if(x==y)
printf("\nBoth the values are same =%d",x,y);
if(x>y)
printf("\nThe value of x is greater =%d",x);
else
printf("\nThe value of y is greater =%d",y);
if(y!=z)
printf("\nThe value of y is not equal to =%d",y);
getch();
}

No comments:

Post a Comment

Write a program to draw a circle using mid-point circle drawing algorithm.

#include<iostream.h> #include<graphics.h> #include<conio.h> void drawcircle(int x0, int y0, int r) {         ...