saving . . . saved Assingment -1 has been deleted. Assingment -1 has been hidden .
Assingment -1
Title
Question
// My First C Program
#include <stdio.h>
int main()
{
   printf("welcome to the world of C \n ");
   return 0;
}

Mohan S
19ECE16


C-and-Cpp First-C-Program 04-05 min 10-20 sec 06-12-21, 10:11 p.m. Monamervin08

Answers:

Assignments are only for self-assessment. If you have any specific question related to this tutorial please post here.
10-01-22, 3:49 p.m. hbammkanti


#include<stdio.h>
int main()
{
printf("Welcome to the World  of C");
getch();
}
15-03-22, 7:22 p.m. Pdevisreesowmya2408
getch(); is use in void main() function return 0; is use in int main() function
01-04-23, 4:38 p.m. ketandesai951

Login to add comment


#include<stdio.h>
int main()
{
printf("welcome to the world of c");
getch();
}
15-03-22, 8:03 p.m. Rsaisruthi0317


#include<stdio.h>
int main()
{
printf("Welcome to the World of C");
getch();
}
15-03-22, 8:04 p.m. Saipoojitha76599


#include<conio.h>
#include<stdio.h>
void main()
{
 clrscr();
 printf("Welcome to the World of C");
 getch();
}
01-04-23, 4:41 p.m. ketandesai951


<span style="color: #a626a4;">#include</span><span style="color: #50a14f;"><stdio.h></span>
<span style="color: #a626a4;">int</span> <span style="color: #4078f2;">main</span>()
{
    <span style="color: #4078f2;">printf</span>(<span style="color: #50a14f;">"Welcome to the World of C"</span>);
    <span style="color: #a0a1a7;font-style: italic;">//If the /n is included in the beginning of the statement then the statement gets printed on to the next line </span>
    <span style="color: #a0a1a7;font-style: italic;">// If the /n is not included in the beginning of the statement then the statement gets printed on to the first line </span>
    <span style="color: #a0a1a7;font-style: italic;">//but if the new statement is to be printed then it will printed on the 3rd line</span>
}
30-11-23, 2:48 p.m. Vishal_Sonawane


#include <stdio.h>
int main()
{
   printf("welcome to the world of C \n ");
   return 0;
}

answer: welcome to the world of C
29-07-24, 2:55 p.m. 238T1A05E1


<font size="3">#include<stdio.h></font>
<font size="3">#include<conio.h></font>
<font size="3">int main()</font>
<font size="3">{</font>
<font size="3">printf("welcome to the world of c \n");</font>
<font size="3">return 0;</font>
<font size="3">}</font>
output:
welcome to the world of c

if \n is not placed in printf  ,the statements in the next lines are print in the same line


29-07-24, 3:53 p.m. 238T1A05D9


<font size="3">#include<stdio.h></font>
<font size="3">#include<conio.h></font>
<font size="3">int main()</font>
<font size="3">{</font>
<font size="3">printf("welcome to the world of c \n");</font>
<font size="3">return 0;</font>
<font size="3">}</font>
output:
welcome to the world of c

if \n is not placed in printf  ,the statements in the next lines are print in the same line


29-07-24, 3:53 p.m. 238T1A05D9


<span style="background-color: rgb(250, 250, 250);">#include <stdio.h></span>
<span style="background-color: rgb(250, 250, 250);">int main()</span>
<span style="background-color: rgb(250, 250, 250);">{</span>
<span style="background-color: rgb(250, 250, 250);">   printf("welcome to the world of C \n ");</span>
<span style="background-color: rgb(250, 250, 250);">   return 0;</span>
<span style="background-color: rgb(250, 250, 250);">}</span>
Output:
welcome to the world of C
<span style="background-color: rgb(250, 250, 250);">
</span>
29-07-24, 4:09 p.m. tanmayi.P


#include <stdio.h>
int main()
{
printf ("welcome to the world of c\n");
return0;
}

answer: welcome to the world of c                                                                                                                                                                           


29-07-24, 4:19 p.m. Shalini_09


#include <stdio.h>
int main()
{
printf ("welcome to the world of c\n");
return0;
}

answer: welcome to the world of c 
29-07-24, 4:26 p.m. 238T1A05E2


#include <stdio.h>
int main()
{
   printf("welcome to the world of C \n ");
   return 0;
}

answer: welcome to the world of C
12-08-24, 3:05 p.m. tanmayi.P


#include <stdio.h>
int main()
{
   printf("welcome to the world of C \n ");
   return 0;
}

answer: welcome to the world of C
12-08-24, 3:07 p.m. 238T1A05D3


#include<stdio.h>
int main()
{
printf("welcome to c world");
return 0;
}


12-08-24, 3:12 p.m. rehmatshaik795@gmail.com
output:
welcome to c world
12-08-24, 3:12 p.m. rehmatshaik795@gmail.com

Login to add comment


#include<stdio.h>
int main()
{
printf("welcome to c world");
return 0;
}


12-08-24, 3:21 p.m. 238T1A05G1
output:welcome to c world
12-08-24, 3:22 p.m. 238T1A05G1

Login to add comment


#include<stdio.h>
int main()
{
printf("welcome to c world");
return 0;
}
out put:welcome to c world

19-08-24, 2:28 p.m. 238T1A05F2


#include<stdio.h>
int main()
{
printf("welcome to c world");
return 0;
}
output:welcome to c world

19-08-24, 3:15 p.m. 238T1A05F6


#include<stdio.h>
int main()
{
printf("welcome to c world");
return 0;

output:welcome to c world
20-08-24, 7:24 p.m. shaiksaniyamehazabeen@gmail.com


Log-in to answer to this question.