Wright A Program Display Hello World On Screen ?

1) Wright A Program Display  Welcom To C Programing  On Screen ?

hello-world-program
hello world program 

    Write a program to display a message in c ?

 /*Display Message*/

# include<stdio.h>

int main ()

{

                        printf("Welcom To C Programing ");

                        printf("Hello World");

                        return 0;

              }         

Output :-  Welcom To C Programing

        Hello World


2)   Wright A Program Display Indian 5 City, Mumbai, Delhi, Chennai, Kolkata, Bengaluru, On Screen.

/*Display Message In Indian 5 City */

#include<stdio.h>

int main ()

{

                        printf("Indian 5 City ");

                        printf("\nMumbai ");

                        printf("\nDelhi ");

                        printf("\nChennai ");

                        printf("\nKolkata");

                        printf("\nBengaluru ");

                        return 0;

}                                              

Output :-  Indian 5 City

Mumbai

Delhi

Chennai

Kolkata

Bengaluru

Comments

Popular posts from this blog

Difference between cpp and java.

Addition Of Two Numbers In Java

What is the java programming language ?