Skip to content

Instantly share code, notes, and snippets.

#include<stdio.h>/*calling the header files*/
int main()
{
int i,j,k,n; /*intializing the variables which are needed*/
printf("Please enter the rows for the right andled triangle \n");
scanf("%d",&n);
/*Loop for the uppart part of the pattern*/
for(i=n;i>=1;i--)
{
for(j=1;j<=i;j++)
#include<stdio.h>
#include<conio.h>
#include <windows.h>
#include<ctype.h>
#include<stdlib.h>
#include<time.h>
#include<dos.h>
void displayscore()
{
#include<stdio.h>
#include<time.h>
void delay(unsigned int mseconds)
{
clock_t goal = mseconds + clock();
while (goal > clock());
}
int main()
{
int i;
/*given the length it should print all the repeated strings in the word of that particular length*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i,j,k,l,p=0,f,q=0,t;
char s[100];
printf("\nenter the word:");
gets(s);
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<windows.h>
#include<stdlib.h>
struct subscriber
{
char phonenumber[20];
char name[50];
float amount;
#include<stdio.h>
#define CHAR_BIT 8
/*Function to find minimum of x and y*/
int min(int x, int y)
{
return y + ((x - y) & ((x - y) >>
(sizeof(int) * CHAR_BIT - 1)));
}
#include<stdio.h>/*calling the header files*/
int main()
{
int i,j,k,n,c,c1=0; /*initializing the variables which are needed*/
printf("Please enter the rows for the right and led triangle \n");
scanf("%d",&n);
/*Loop for the upper part of the pattern*/
for(i=n;i>=1;i--)
{
c=64;
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<math.h>
#include<dos.h>
#include<time.h>
#include<ctype.h>
#include<windows.h>
COORD coord = {0, 0};
#include<graphics.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<process.h>
void main()
{
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<time.h>
void loop()
{
int i,temp,limit,a[1000];
cout<<"Enter the limit of the unordered list:";
cin>>limit;
for(i=1;i<=limit;i++)