Showing posts with label C proramming. Show all posts
Showing posts with label C proramming. Show all posts

To display a triangle using C Programming!

// to display a triangle using Graphics
#include<stdio.h>
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm,x,a,b;
initgraph (&gd,&gm,"c:\\tc\\bgi ");
while(!kbhit()) //display a triangle till a key is pressed
{
setcolor(WHITE);
line(300,200,400,300);
line(300,200,200,300);
line(200,300,400,300);
}
getch();
}

7 AI Skills Employers Will Expect in 2026 (And How You Can Start Learning Today)

7 AI Skills Employers Will Expect in 2026 (And How You Can Start Learning Today) Discover the 7 AI skills employers expect in 2026. Learn ho...