C_CPP_Codes
114 subscribers
1 photo
About me :- alokosx.me

Books,notes and more at :- cp_resources.t.me

Discussion :- c_cpp_code.t.me
Download Telegram
Channel created
Code to print single line in c :
#include <stdio.h>
int main(void)
{
 printf("Hello World!\n");
}
Output :

Hello World!
Code to print multiple lines in C :

#include <stdio.h>
int main(void)
{
printf("Some say the world will end in fire,\n");
printf("Some say in ice.\n");
printf("From what I’ve tasted of desire\n");
printf("I hold with those who favor fire.\n");
printf("But if it had to perish twice,\n");
printf("I think I know enough of hate\n");
printf("To say that for destruction ice is also great\n");
printf("And would suffice.\n");
}

• Output :

Some say the world will end in fire,
Some say in ice.
From what I’ve tasted of desire
I hold with those who favor fire.
But if it had to perish twice,
I think I know enough of hate
To say that for destruction ice is also great
And would suffice.