asked 107k views
4 votes
Write a program to output the following ​

Write a program to output the following ​-example-1

1 Answer

5 votes

Answer:

The program to this question as follows:

Program:

#include <stdio.h> //including header file

int main() //defining main method

{

printf("\t ^ ^\\"); //print design

printf("\t ( o o )\\"); //print design

printf("\t v"); //print design

return 0;

}

Output:

^ ^

( o o )

v

Step-by-step explanation:

In the C language program above, the header file is included first, then the main method is defined, inside this method print function is used to print the given design.

In the print function, we print values as a message, in which "\t and \\" are used. The "\t" is used for giving a tab space, and "\\" is used for print value in the new line.

answered
User Hightech
by
7.7k points

No related questions found