Fibonacci Series In C
Hello Programmers.....Now a simple program to print the Fibonacci series. Fibonacci series is a series of the numbers in which each number is the sum of two last numbers or two…
Hello Programmers.....Now a simple program to print the Fibonacci series. Fibonacci series is a series of the numbers in which each number is the sum of two last numbers or two…
#include<stdio.h> #include<conio.h> void main() { int i,j,k; clrscr(); for(i=1;i<=5;i++) { for(k=1;k<=5-i;k++) { printf(" "); } for(j=1;j<=i;j++) { printf(" *"); } printf("\n"); } getch(); } Output:
Simple C program to print the mirrored right triangle pattern in C. #include<stdio.h> #include<conio.h> void main() { int i,j,k; clrscr(); for(i=0;i<=4;i++) { for(k=0;k<=4-i;k++) // for gap -->the gap is in…
A simple C program to print a right triangle pattern by using stars. There are various types of patterns. But i will be uploading the important patterns that will help…
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: