Hello world
C Language Exercise for Balaji.
Hello World Program
Hello World Program
#include<stdio.h>
int main()
{
printf("Hi Balaji");
}
Explanation:
#include<stdio.h>
This is the header file for standard input output without this printf wont work.
int main()
{
//write code here
}
{
//write code here
}
Hello world with User input:
#include <stdio.h> // header file
int main() //begining of code
{
char value[30]; // variable decleration char is an data type
printf("Enter Your Name: "); //print function
scanf("%s",&value); // scan function to get input from user
printf("Hi %s",value);
}
Comments
Post a Comment