Skip to content

Commit 844be60

Browse files
committed
refactor
1 parent e466234 commit 844be60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

02_operators/16_make_last_digit_zero.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ int main()
1212
printf("\nEnter An Integer => ");
1313
scanf("%d", &num);
1414

15-
//// 1st Approach
15+
// // 1st Approach
1616
result = num / 10 * 10;
1717

18-
//// 2nd Approach
18+
// // 2nd Approach
1919
// result = num - num % 10;
2020

2121
printf("\nResult After Converting Last Digit of %d into 0 => %d", num, result);

02_operators/18_pos_of_first_1_in_bin.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main()
1212
scanf("%d", &num);
1313
int copyNum = num;
1414

15-
//// 1st Approach
15+
// // 1st Approach
1616
// if (copyNum)
1717
// {
1818
// while (!(num & 1))
@@ -26,7 +26,7 @@ int main()
2626
// else
2727
// printf("\nThere is No 1 in the Binary of 0\n");
2828

29-
//// 2nd Approach
29+
// // 2nd Approach
3030
while (num)
3131
{
3232
if (num & 1)

0 commit comments

Comments
 (0)