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> | |
| struct game | |
| { | |
| int arr[10][10]; | |
| int cnt; | |
| int score; | |
| }game[2]; | |
| void main() | |
| { | |
| int n,i,j,k,r,c,ele,ch,diag1=0,diag2=0,row=0,col=0,flag=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
| /* | |
| * Program name: burgleralarm | |
| * Author : Sashwat K | |
| * Created on 2 NOV 2017 | |
| * Revision : 3 | |
| * Revision on : 29 NOV 2017 08:37 AM | |
| * Device : Arduino UNO | |
| * NOTE :- | |
| * Photo Transistor : above 100 <- the transistor is sensing IR signal | |
| * less than 100 <- the transistor is not sensing IR signal |
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
| import java.util.Scanner; | |
| public class bank | |
| { | |
| public static void main(String args[]) | |
| { | |
| int ch,ch1; | |
| Scanner sc=new Scanner(System.in); | |
| bank_account accou=new bank_account(); | |
| System.out.println("Enter balance: "); | |
| accou.balance=sc.nextFloat(); |
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<stdlib.h> | |
| struct node | |
| { | |
| int coefficient,exponent; | |
| struct node *next; | |
| }; | |
| struct node *hPtr1,*hPtr2,*hPtr3; |
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
| /* Marksheet */ | |
| #include<stdio.h> | |
| main() | |
| { | |
| char name[20]; | |
| int sem,i; | |
| float dm[3],c[3],ps[3],pom[3],df[3],tot[5],tot1,totper; | |
| printf("Enter the following data:-\n"); | |
| printf("Enter name: "); |
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
| /* Program */ | |
| /* a : To store value 5 (extern variable) */ | |
| /* b : To store value 10 (Golbal variable) */ | |
| /* c : To store value 32 (auto variable) */ | |
| /* d : To store character A (register variable) */ | |
| /* e : To store increment value (static variable) */ | |
| #include<stdio.h> | |
| #include <time.h> |
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> | |
| void toh(int,char,char,char); | |
| main() | |
| { | |
| int n; | |
| printf("Tower of Hanoi:- \n"); | |
| printf("1. Enter number of disks: "); | |
| scanf("%d",&n); |
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> | |
| void recursion(int ,float); | |
| main() | |
| { | |
| float num; | |
| printf("Enter a value to split in percentage: "); | |
| scanf("%f",&num); | |
| recursion(1,num); | |
| } |
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<string.h> | |
| #include<math.h> | |
| #include<stdlib.h> | |
| float func_calculate(char[],char[]); | |
| float func_calc_tariff(float); | |
| struct travel_distance | |
| { |
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> | |
| struct sparse | |
| { | |
| int mat[10][10]; | |
| int size; | |
| }sp; | |
| void sp_int(int,int); | |
| void loca(int,int); |
OlderNewer