-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay9.c
More file actions
97 lines (76 loc) · 1.67 KB
/
Day9.c
File metadata and controls
97 lines (76 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// #include<stdio.h>
// void main(){
// int arr1[5],arr2[5],summ[5];
// int i;
// for (int i=0; i < 5; i++)
// {
// printf("Enter the number :");
// scanf("%d",&arr1[i]);
// }
// for (i=0; i < 5; i++)
// {
// printf("Enter the number :");
// scanf("%d",&arr2[i]);
// }
// for ( i = 0; i < 5; i++)
// {
// summ[i] = arr1[i]+arr2[i];
// printf("%d\n",summ[i]);
// }
// }
// #include<stdio.h>
// int a[2][2],i,j,summing[2],adder[2];
// void main(){
// for ( i = 0; i < 2; i++)
// {
// for ( j = 0; j < 2; j++)
// {
// printf("Enter The number :\n");
// scanf("%d",&a[i][j]);
// }
// }
// for ( i = 0; i < 2; i++)
// {
// adder[i] = a[i][j];
// // printf("%d",adder[i]);
// }
// summing[0] += adder[0];
// printf("%d",summing[0]);
// }
// #include<stdio.h>
// #include<string.h>
// char name[] = "c",end_name[] = "Chandangow",empty[] = "";
// int a,b,i;
// void main(){
// a = strlen(name);
// b = strlen(end_name);
// int empty = strlen(empty);
// for ( i = a; i < b*b+1; i++)
// {
// printf("%d\n",i);
// }
// }
// #include<stdio.h>
// int cha = 10;
// int *chess = &cha;
// void main(){
// printf("%d\n",cha);
// printf("%p",chess);
// }
#include<stdio.h>
int cha = 10;
// void sum(){
// int a = 10,b = 20,chess=0;
// chess = a+b;
// printf("%d",chess);
// }
int sum(){
int a = 10, b=20, tot = 0;
tot = a+b;
// printf("%d",tot);
return tot;
}
void main(){
printf("Hi\n");
printf("%d",sum());
}