Write a program to Display your name and some Message

Problem statement:- Program to Display your name and some Message.

Data requirement:-

   Input Data:- No Input

  Output Data:-String Output

Program in C

Here is the source code of the C Program to Display your name and some Message.

Code:

#include<stdio.h> int main()
{
printf("Sourav Patra\n");
printf("Welcome to C\n");
printf("Welcome to our page www.csinfo360.com\n");
printf("Programming Practice");
printf("Thank you!");
}

Output:
Sourav Patra
Welcome to C
Welcome to our page www.csinfo360.com
Programming Practice
Thank you!

Program in C++

Here is the source code of the C++ Program to Display your name and some Message.

Code:

#include <iostream>
using namespace std;
int main()
{


    cout<<"Sourav Patra";
    cout<<"\nWelcome to C++ ";
    cout<<"\nWelcome to our page www.csinfo360.com";
    cout<<"\nProgramming Practice";
    cout<<"\nThank you!";

    return 0;
}


Output:
Sourav Patra
Welcome to C++
Welcome to our page www.csinfo360.com
Programming Practice
Thank you!

Program in Java

Here is the source code of the Java Program to Display your name and some Message.

Code:

public class DisplayNameMessage {

public static void main(String[] args) {
System.out.println("Sourav Patra");
System.out.println("Welcome to Java");
System.out.println("Welcome to our page www.csinfo360.com");
System.out.println("Programming Practice");
System.out.println("Thank you!");
}
}


Output:
Sourav Patra
Welcome to Java
Welcome to our page www.csinfo360.com
Programming Practice
Thank you!

Program in Python

Here is the source code of the Pyhon Program to Display your name and some Message.

Code:

print("Sourav Patra")
print("Welcome to Python")
print("Welcome to our page www.csinfo360.com")
print("Programming Practice")
print("Thank you!")


Output:
Sourav Patra

Post a Comment

0 Comments