Skip to content

Commit d231ff4

Browse files
committed
new
0 parents  commit d231ff4

34 files changed

+325
-0
lines changed
Binary file not shown.
Binary file not shown.

.vs/LeetCode/v17/.wsuo

13.5 KB
Binary file not shown.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"Version": 1,
3+
"WorkspaceRootPath": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\",
4+
"Documents": [
5+
{
6+
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\hello_10.c||{3B902123-F8A7-4915-9F01-361F908088D0}",
7+
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:hello_10.c||{3B902123-F8A7-4915-9F01-361F908088D0}"
8+
},
9+
{
10+
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\c.c||{3B902123-F8A7-4915-9F01-361F908088D0}",
11+
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:c.c||{3B902123-F8A7-4915-9F01-361F908088D0}"
12+
}
13+
],
14+
"DocumentGroupContainers": [
15+
{
16+
"Orientation": 0,
17+
"VerticalTabListWidth": 256,
18+
"DocumentGroups": [
19+
{
20+
"DockedWidth": 200,
21+
"SelectedChildIndex": 0,
22+
"Children": [
23+
{
24+
"$type": "Document",
25+
"DocumentIndex": 0,
26+
"Title": "hello_10.c",
27+
"DocumentMoniker": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\hello_10.c",
28+
"RelativeDocumentMoniker": "hello_10.c",
29+
"ToolTip": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\hello_10.c",
30+
"RelativeToolTip": "hello_10.c",
31+
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAA==",
32+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000423|",
33+
"WhenOpened": "2025-03-09T03:05:42.982Z",
34+
"EditorCaption": ""
35+
},
36+
{
37+
"$type": "Document",
38+
"DocumentIndex": 1,
39+
"Title": "c.c",
40+
"DocumentMoniker": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\c.c",
41+
"RelativeDocumentMoniker": "c.c",
42+
"ToolTip": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\c.c",
43+
"RelativeToolTip": "c.c",
44+
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
45+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000423|",
46+
"WhenOpened": "2025-03-09T03:05:38.144Z",
47+
"EditorCaption": ""
48+
}
49+
]
50+
}
51+
]
52+
}
53+
]
54+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"Version": 1,
3+
"WorkspaceRootPath": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\",
4+
"Documents": [
5+
{
6+
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\hello_10.c||{3B902123-F8A7-4915-9F01-361F908088D0}",
7+
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:hello_10.c||{3B902123-F8A7-4915-9F01-361F908088D0}"
8+
},
9+
{
10+
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\c.c||{3B902123-F8A7-4915-9F01-361F908088D0}",
11+
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:c.c||{3B902123-F8A7-4915-9F01-361F908088D0}"
12+
}
13+
],
14+
"DocumentGroupContainers": [
15+
{
16+
"Orientation": 0,
17+
"VerticalTabListWidth": 256,
18+
"DocumentGroups": [
19+
{
20+
"DockedWidth": 200,
21+
"SelectedChildIndex": 0,
22+
"Children": [
23+
{
24+
"$type": "Document",
25+
"DocumentIndex": 0,
26+
"Title": "hello_10.c",
27+
"DocumentMoniker": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\hello_10.c",
28+
"RelativeDocumentMoniker": "hello_10.c",
29+
"ToolTip": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\hello_10.c",
30+
"RelativeToolTip": "hello_10.c",
31+
"ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAABAAAAAAAAAA==",
32+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000423|",
33+
"WhenOpened": "2025-03-09T03:05:42.982Z",
34+
"EditorCaption": ""
35+
},
36+
{
37+
"$type": "Document",
38+
"DocumentIndex": 1,
39+
"Title": "c.c",
40+
"DocumentMoniker": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\c.c",
41+
"RelativeDocumentMoniker": "c.c",
42+
"ToolTip": "C:\\Users\\DELL\\OneDrive\\Bureau\\LeetCode\\c.c",
43+
"RelativeToolTip": "c.c",
44+
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
45+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000423|",
46+
"WhenOpened": "2025-03-09T03:05:38.144Z"
47+
},
48+
{
49+
"$type": "Bookmark",
50+
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
51+
}
52+
]
53+
}
54+
]
55+
}
56+
]
57+
}

.vs/VSWorkspaceState.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ExpandedNodes": [
3+
""
4+
],
5+
"SelectedNode": "\\hello_10.c",
6+
"PreviewInSolutionExplorer": false
7+
}

.vs/slnx.sqlite

88 KB
Binary file not shown.

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"discord.removeLowerDetails": true
3+
}

.vscode/tasks.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"tasks": [
3+
{
4+
"type": "cppbuild",
5+
"label": "C/C++: gcc.exe build active file",
6+
"command": "C:\\Users\\DELL\\CodeBlocks\\MinGW\\bin\\gcc.exe",
7+
"args": [
8+
"-fdiagnostics-color=always",
9+
"-g",
10+
"${file}",
11+
"-o",
12+
"${fileDirname}\\${fileBasenameNoExtension}.exe"
13+
],
14+
"options": {
15+
"cwd": "${fileDirname}"
16+
},
17+
"problemMatcher": [
18+
"$gcc"
19+
],
20+
"group": {
21+
"kind": "build",
22+
"isDefault": true
23+
},
24+
"detail": "Task generated by Debugger."
25+
}
26+
],
27+
"version": "2.0.0"
28+
}

19-SumWithForLoop.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <stdio.h>
2+
int main(){
3+
int i , sum = 0 , n ;
4+
5+
printf("enter the number n: ");
6+
scanf("%d", &n);
7+
for ( i = 1; i <= n; i++)
8+
{
9+
sum += i ;
10+
}
11+
printf("the sum of 1 and %d is equal to %d", n , sum);
12+
13+
}

0 commit comments

Comments
 (0)