Skip to content

Commit b8c1a8e

Browse files
committed
refactor
1 parent 844be60 commit b8c1a8e

File tree

346 files changed

+6877
-6877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

346 files changed

+6877
-6877
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// C program to print C Programming on screen
1+
// // C program to print C Programming on screen
22

3-
// Header files
3+
// // Header files
44
#include <stdio.h>
55
#include <conio.h>
66

7-
// Main Function Start
7+
// // Main Function Start
88
int main()
99
{
1010

11-
printf("C Programming"); // printf() function is used to print Output on screen
11+
printf("C Programming"); // // printf() function is used to print Output on screen
1212

1313
getch();
1414
return 0;
1515
}
16-
// Main Function End
16+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// C program to print C in first line and Programming in the second line.
1+
// // C program to print C in first line and Programming in the second line.
22

3-
// Header files
3+
// // Header files
44
#include <stdio.h>
55
#include <conio.h>
66

7-
// Main Function Start
7+
// // Main Function Start
88
int main()
99
{
1010

11-
printf("C\nProgramming"); // '\n' is used to add New line.
11+
printf("C\nProgramming"); // // '\n' is used to add New line.
1212

1313
getch();
1414
return 0;
1515
}
16-
// Main Function End
16+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// C program to print "C Programming" in Double Quotes
1+
// // C program to print "C Programming" in Double Quotes
22

3-
// Header files
3+
// // Header files
44
#include <stdio.h>
55
#include <conio.h>
66

7-
// Main Function Start
7+
// // Main Function Start
88
int main()
99
{
1010

11-
printf(" \"C Programming\" "); // '\"' is used to print Double Quotes (")
11+
printf(" \"C Programming\" "); // // '\"' is used to print Double Quotes (")
1212

1313
getch();
1414
return 0;
1515
}
16-
// Main Function End
16+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// C program to print "C Programming" in Single Quotes
1+
// // C program to print "C Programming" in Single Quotes
22

3-
// Header files
3+
// // Header files
44
#include <stdio.h>
55
#include <conio.h>
66

7-
// Main Function Start
7+
// // Main Function Start
88
int main()
99
{
1010

@@ -13,4 +13,4 @@ int main()
1313
getch();
1414
return 0;
1515
}
16-
// Main Function End
16+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to print following String :-
2-
// 👉 Output => " Hello, this is forward slash (/) , this is back slash (\) , this is single quote (') and this is double quotes (") "
1+
// // C program to print following String :-
2+
// // 👉 Output => " Hello, this is forward slash (/) , this is back slash (\) , this is single quote (') and this is double quotes (") "
33

4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -14,4 +14,4 @@ int main()
1414
getch();
1515
return 0;
1616
}
17-
// Main Function End
17+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to print single Forward Slash (/) on screen
2-
// 👉 Output => /
1+
// // C program to print single Forward Slash (/) on screen
2+
// // 👉 Output => /
33

4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -14,4 +14,4 @@ int main()
1414
getch();
1515
return 0;
1616
}
17-
// Main Function End
17+
// // Main Function End
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to print single Back Slash (\) on screen
2-
// 👉 Output => \
1+
// // C program to print single Back Slash (\) on screen
2+
// // 👉 Output => \
33
4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -14,4 +14,4 @@ int main()
1414
getch();
1515
return 0;
1616
}
17-
// Main Function End
17+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to print single Back Slash (\) on screen
2-
// 👉 Output => \\
1+
// // C program to print single Back Slash (\) on screen
2+
// // 👉 Output => \\
33
4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -14,4 +14,4 @@ int main()
1414
getch();
1515
return 0;
1616
}
17-
// Main Function End
17+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to print New line character '\n' on screen.
2-
// 👉 Output => \n
1+
// // C program to print New line character '\n' on screen.
2+
// // 👉 Output => \n
33

4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -14,4 +14,4 @@ int main()
1414
getch();
1515
return 0;
1616
}
17-
// Main Function End
17+
// // Main Function End
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to print Tab character '\t' on screen.
2-
// 👉 Output => \t
1+
// // C program to print Tab character '\t' on screen.
2+
// // 👉 Output => \t
33

4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -14,4 +14,4 @@ int main()
1414
getch();
1515
return 0;
1616
}
17-
// Main Function End
17+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to print Percent symbol (%) on screen
2-
// 👉 Output => %
1+
// // C program to print Percent symbol (%) on screen
2+
// // 👉 Output => %
33

4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -14,4 +14,4 @@ int main()
1414
getch();
1515
return 0;
1616
}
17-
// Main Function End
17+
// // Main Function End
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to print (%d) on screen
2-
// 👉 Output => %d
1+
// // C program to print (%d) on screen
2+
// // 👉 Output => %d
33

4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -14,4 +14,4 @@ int main()
1414
getch();
1515
return 0;
1616
}
17-
// Main Function End
17+
// // Main Function End
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to take two numbers as input and print sum of the numbers in following format :-
2-
// 👉 Output => Sum of N and N => N
1+
// // C program to take two numbers as input and print sum of the numbers in following format :-
2+
// // 👉 Output => Sum of N and N => N
33

4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -18,4 +18,4 @@ int main()
1818
getch();
1919
return 0;
2020
}
21-
// Main Function End
21+
// // Main Function End
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// C program to take radius of circle and print area of circle in following format :-
2-
// 👉 Output => Area of Circle is A having radius R
3-
// Where A is Area of Circle and R is Radius of Circle.
1+
// // C program to take radius of circle and print area of circle in following format :-
2+
// // 👉 Output => Area of Circle is A having radius R
3+
// // Where A is Area of Circle and R is Radius of Circle.
44

5-
// Header files
5+
// // Header files
66
#include <stdio.h>
77
#include <conio.h>
88

9-
// Main Function Start
9+
// // Main Function Start
1010
int main()
1111
{
1212

@@ -19,4 +19,4 @@ int main()
1919
getch();
2020
return 0;
2121
}
22-
// Main Function End
22+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// C program to print return value of printf() function
1+
// // C program to print return value of printf() function
22

3-
// Header files
3+
// // Header files
44
#include <stdio.h>
55
#include <conio.h>
66

7-
// Main Function Start
7+
// // Main Function Start
88
int main()
99
{
1010

@@ -16,4 +16,4 @@ int main()
1616
getch();
1717
return 0;
1818
}
19-
// Main Function End
19+
// // Main Function End
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// C program to count number of characters in this string => “C Programming” using printf() function.
1+
// // C program to count number of characters in this string => “C Programming” using printf() function.
22

33

4-
// Header files
4+
// // Header files
55
#include <stdio.h>
66
#include <conio.h>
77

8-
// Main Function Start
8+
// // Main Function Start
99
int main()
1010
{
1111

@@ -16,4 +16,4 @@ int main()
1616
getch();
1717
return 0;
1818
}
19-
// Main Function End
19+
// // Main Function End

01_basic_input_output/17_return_value_of_scanf.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// C program to print return value of scanf() function
1+
// // C program to print return value of scanf() function
22

3-
// Header files
3+
// // Header files
44
#include <stdio.h>
55
#include <conio.h>
66

7-
// Main Function Start
7+
// // Main Function Start
88
int main()
99
{
1010

@@ -17,4 +17,4 @@ int main()
1717
getch();
1818
return 0;
1919
}
20-
// Main Function End
20+
// // Main Function End

0 commit comments

Comments
 (0)