Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
About Me

Ever Learner | Motivator | Motivational Speaker. My aim is to serve society and nation at large. Think Global, Act Local is my motto. Connect with me.

Favorite Tags
Member Avatar for RitzDas

#include<stdio.h> #include<math.h> #include<conio.h> #include<graphics.h> void main() { float x1,x2,y1,y2,x,y,dx,dy,pixel; int i,gd=DETECT,gm; initgraph(&gd,&gm,""); printf("Enter x-coordinate for initial point: "); scanf("%f",&x1); printf("Enter y-coordinate for initial point: "); scanf("%f",&y1); printf("Enter x-coordinate for final point: "); scanf("%f",&x2); printf("Enter y-coordinate for final point: "); scanf("%f",&y2); dx=abs(x2-x1); dy=abs(y2-y1); if(dx>=dy) pixel=dx; else pixel=dy; x=x1; y=y1; i=1; while(i<pixel) …

Member Avatar for rproffitt
0
192
Member Avatar for amit.hak50
Member Avatar for JamesCherrill
0
821