Floyd’s Triangle in C
A simple C program to print floyd's triangle. A user enters the number of rows as seen in the output. #include<stdio.h> #include<conio.h> void main() { int i,j,num=1,n; clrscr(); printf("enter the…
A simple C program to print floyd's triangle. A user enters the number of rows as seen in the output. #include<stdio.h> #include<conio.h> void main() { int i,j,num=1,n; clrscr(); printf("enter the…
Repetedly swapping of numbers to sort it into ascending or descending order is called bubble sort. Step 1: 1 1 1 1 9 7 7 7 7 9 5 5…
A simple program for addition, subtraction, multiplication, and division by switch case. #include<stdio.h> #include<conio.h> void main() { int calc,i; int a,b,c; …
#include<stdio.h> #include<conio.h> void main() { clrscr(); // clear screen printf("Hello World"); //to display Hello World getch(); // to pause } OUTPUT: