I am new to programming as just started FYJC IT and was trying to run one simple C program. As far as I know that "\n" in C language is used to give the break lines but in my case, it is not working as expected. here is the code that I am trying to execute.
When I compiled this program then I get the output as#include<stdio.h>
int main()
{
int a=2,b=3,c,d;
float p,q;
c=a/b*b;
d=b/a*a;
p=a/b*b;
q=b/a*a;
printf("%d %d %f %f\n",c,d,p,q);
return 0;
}
0 2 0.000000 2.000000
I am not able to understand that why \n is not breaking the output. Also, provide me some more information about the "\n" in C language.
Bookmarks