S

@Shobh89

C Program To Print Triangle

C
1 year ago
//C program to print a triangle #include <stdio.h> //Driver code int main() { int n=6; //ith row has i elements for(int i=1;i<=n;i++){

C program to print an inverted pyramid pattern

C
1 year ago
//C program to print //inverted pyramid //pattern #include <stdio.h> //Driver code int main() { int rows=8,i,j,space;

C Program to Print Number Pattern

C
1 year ago
//C program to illustrate the above //given pattern of numbers #include <stdio.h> int main() { int n=5,i,j,num=1,gap; gap=n-1;

Simple Calculator Program using switch Statement

C
1 year ago
#include<stdio.h> int main() { char op; double first,second; printf("Enter an operator (+,-,*,/): "); scanf("%c",&op); printf("Enter two operands: "); scanf("%lf %lf",&first,&second);

C program to print continuous character patterns using character using for loop:

C
1 year ago
//C program to print continuous //character pattern using //character #include <stdio.h> int main() { int i,j; //Number of rows int rows=5;

c-program-to-print-hollow-star-pyramid

C
1 year ago
//C Program to Demonstrate //a Hollow Star Pyramid #include <stdio.h> int main() { int i,space,n=5,j=0; //first for loop is used to //iterate number of rows

C program to print an inverted hollow star pyramid using for loop:

C
1 year ago
//C program to print an inverted hollow //star pyramid using for loop #include <stdio.h> void pattern_fun(int row) { //To iterate through the rows for(int j=1;j<=row;j++) { //To print the beginning spaces for(int sp=1;sp<=j-1;sp++)

C Program To Print Hollow Diamond Pattern

C
1 year ago
//C program to Print Hollow Diamond //Pattern using for loop #include <stdio.h> int main() { int n=5,rows,columns; //for loop is used to identify //the number of rows and

C Program To Print Diamond Pattern

C
1 year ago
//C program to print full //diamond shape pyramid #include <stdio.h> //Print diamond pattern void printDiamond(int n) { int space=n-1; //Run loop till the number

Alphabets Floyd’s triangle using for loop

C
1 year ago
//C program to Demonstrate Alphabet Floyd's //Triangle using for loop #include <stdio.h> void alpha_floyd(int n) { int k='a'; for(int i=1;i<=n;i++){ for(int j=1;j<=i;j++) printf("%c",k++);

Floyd’s triangle using for loop

C
1 year ago
//C program to Demonstrate Floud's Triangle //Using for loop #include <stdio.h> void floyd(int n) { int i,j=1; //Condition printing the number of element for(i=1;i<=(n*(n+1))/2;i++){

C Program To Print Reverse Floyd’s Pattern

C
1 year ago
//C program to demonstrate reversing //of floyd's triangle #include <stdio.h> void Reverse_Floyd(int row) { //Calculating the maximum value int max_val=row*(row+1) / 2; //Initilizing num with the max value int num=max_val;

Program to Create a Simple Calculator Using if-else Statement

C
1 year ago
//C program to Make a Simple Calculator using if-else statement #include <stdio.h> #include<limits.h> //Function that implements the simple calculator double simpleCalc(double num1,double num2,char op){ int result; //Perform the corresponding operation if(op == '+') {

Write a C program to reverse a linked list iteratively

C
1 year ago
//C program to reverse a linked list itertively #include <stdio.h> #include<stdlib.h> /* Link list node */ struct Node{ int data; struct Node*next; };

Write a C Program to add Two Distance Given as Input in Feet and Inches

C
1 year ago
//C program for calculating sum of //Distance in inches and feet #include "stdio.h" //struct defined for the inch-feet system struct InchFeet{ int feet; float inch; };

Write a C Program To Add Two Complex Numbers Using Structures And Functions.

C
1 year ago
//C program to demonstrate //addition of complex numbers #include <stdio.h> // define a structure for complex number typedef struct complexNumber{ int real; int img; } complex;

Write a C program to Store Information about Students Using Structure

C
1 year ago
// C Program to Store // Information about Students // Using Structure #include <stdio.h> #include <stdlib.h> #include <string.h> // Create the student structure struct Student { char* name;

Write a program to sort an array using pointers.

C
1 year ago
//C program to implement //sorting using pointers #include <stdio.h> //Function to sort the numbers using pointers void sort(int n,int* ptr) { int i,j; //Sort the numbers using pointers

Write a C Program to sort arrays using Quick Sort.

C
1 year ago
//C program for //sorting array using //Quick sort #include <stdio.h> void swap(int* a,int* b) { int t=*a; *a=*b; *b=t;

Write a C Program to sort arrays using Merge Sort.

C
1 year ago
//C program for //sorting array //using Merge Sort #include <stdio.h> void merge(int arr[],int l,int m,int r) { int i,j,k; int n1=m-l+1; int n2=r-m;