C
c
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
// my weary is understanding this today!.
//please help me do.
#include <stdio.h>
int main() {
float a = 0.7;
//scenario 1:
printf("This is first case where 0.7 comes before the variable name \'a\'\n");
if(0.7>a)
printf("\nhi\n");
else
printf("hello\n");
for(int i=0; i<=20; i++)
printf("--");
//scenario 2:
printf("\nThis is second case where 0.7 comes after the variable name \'a\'\n");
if(a>0.7)
printf("\nhi\n");
else
printf("\nhello\n");
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run