CS602 Assignment No 1 Spring 2022 Complete Solution File



//SOLUTION FILE AVAILABLE JUST CLICK SUBSCRIBE BUTTON I'll give link in description box


#include<iostream>



#include<graphics.h>



#include<math.h>




using namespace std;


int main()



{

int gd=DETECT,gm;

initgraph(&gd,&gm,(char*)"");

settextstyle(5,0,4);

outtextstyle(40.10,"bc180543266 VIRTUAL GURU!");

int x1=80,y1=80,x2=150,y2=150;

setfilstyle(1,RED);

rectangle(x1,y1,x2,y2);

floodfill(81,81,15);

int y=2,x=2;

setcolor(3);

rectangle(x1*x,y1*y,x2*x,y2*y);

int x3=400,y3=100,x4=300,y4=200,shx=3;

x1=x1+shx*y1;

x2=x2+shx*y2;

x4=x4+shx*y4;

setcolor(13);

line(x1,y1,x2,y2);

    line(x1,y1,x3,y3);

    

    

    

line(x3,y3,x4,y4);

line(x2,y2,x4,y4);

settextstyle(6,0,5);

outtext(40,310,"SOLUTION FILE AVIALABLE JUST CLICK SUBSCRIBE BUTTON PLEASE!");

getch();

closegraph();

return 0;

Post a Comment

Previous Post Next Post