How to to print your name in C programming?
C PROGRAM TO PRINT YOUR NAME
How to print your name in C programming ?
To print your name we have to write the program as shown below;
syntax:
1. #include<stdio.h>
2. int main()
3. {
4. printf("Your Name");
5. return 0;
6. }
e.g>
I
1. #include<stdio.h>
2. int main()
3. {
4. printf("My name is Sachin Tendulkar.");
5. return 0;
6. }
output:-My name is Sachin Tendulkar.
How it is displayed in PC?
II
1. #include<stdio.h>
2. int main()
3. {
4. printf("Dilip Kumar Sahu");
5. return 0;
6. }
output:-Dilip Kumar Sahu
III
1. #include<stdio.h>
2. int main()
3. {
4. printf("My name is Lupin Chandra Nayak.");
5. return 0;
6. }
output:-My name is Lupin Chandra Nayak.
The above programs are some examples to print your name in c programming.
Comments
Post a Comment