This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| #include<conio.h> | |
| #include <windows.h> | |
| #include<ctype.h> | |
| #include<stdlib.h> | |
| #include<time.h> | |
| #include<dos.h> | |
| void displayscore() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| #include<time.h> | |
| void delay(unsigned int mseconds) | |
| { | |
| clock_t goal = mseconds + clock(); | |
| while (goal > clock()); | |
| } | |
| int main() | |
| { | |
| int i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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))); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<graphics.h> | |
| #include<conio.h> | |
| #include<dos.h> | |
| #include<stdlib.h> | |
| #include<process.h> | |
| void main() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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++) |