How to Print "Hello World" and also write personal detail using "printf" in "C language"?
this is very first program that programmer written in c language and this is very much easy you just use printf function and written what you want to write inside double quotes ("-").
show source code below for better understanding
#include <stdio.h>
int main(){ printf("Hello World");
return 0;}
OUTPUT:
Hello World
SOURCE CODE:
#include <stdio.h>int main(){ printf("Name:________________\n"); printf("Collage:________________\n"); printf("Branch Name:_______________\n"); printf("Subject:Fundamental of Computer Engineering\n"); printf("Enrollment no:________________\n"); printf("Grade:A\n"); printf("Name:CGPA:8.5\n"); return 0;}
OUTPUT:
Name:________________
Collage:________________
Branch Name:_______________
Subject:Fundamental of Computer Engineering
Enrollment no:________________
Grade:A
Name:CGPA:8.5
0 Comments