Ads Top

Print name and address using printf in c

Print name using c

#include <stdio.h>
#include<conio.h>
void main()
{
printf(“Hari Mohan”);
getch();

}


OUTPUT:


Hari Mohan

Print name  and address using c

#include <stdio.h>
#include<conio.h>
void main()
{
printf(“Hari \n”);
printf(“Karimanalil\n”);
printf(“Kodakara\n”);
printf(“Kochin”);
getch();
}


OUTPUT:
Hari 
Karimanalil
Kodakara

Kochin

Print name  and address using one printf

#include <stdio.h>
#include<conio.h>
void main()
{
printf(“Hari \n Harinilath\n Kodakara\n Kochin”);
getch();
}

OUTPUT:
Hari 
Harinilath
Kodakara
Kochin



No comments:

Touchfeeds. Powered by Blogger.