answersLogoWhite

0

How do you write a programme in c?

User Avatar

Anonymous

15y ago
Updated: 8/18/2019

Basic Program in "C"

#include <stdio.h> /*This is the standard input/output library function*/

main(void) /*All C programs must have the function main*/

{

char ch;

printf("This is a C Program."); /* Every line of code in C must end with a semi colon*/

printf("Welcome to C!");/*the printf outputs the line of text to the screen*/

scanf("%c%c", &ch, &ch); /* This is a trick way to pause the computer so you can read the information on the screen*/

return 0; /* Indicates that your program has terminated successfully*/

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Write a c programme to draw a rainbow?

Write a C program to Draw a RAINBOW and fill the suitable colors ...


Write a C programme to count the number of vowals present in your name?

abhimanyu


Write a programme for substraction of two numbers in c language?

substracion of any two number program in c


How do you write c programme to find proper subset of a given string?

you can use strstr()


How do you use this function in c programme?

I don't use that function in C programme.


How do you write a c programme for elecricity bill?

Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you.


Write a c programme to print all the even numbers in descending order?

#include(stdio.h) int main ()


Write a programme in c to print abcdefedcba?

#include &lt;stdio.h&gt; int main (void) { puts ("abcdefedcba"); return 0; }


How do you solve the c programme of tree of hanoi?

It is the "Tower of Hanoi" and it is a puzzle. When you can solve the puzzle you can write the program, when you have learned enough to write simple programs. You do want to be able to write computer programs, don't you?


Write a c plus plus programme to illustrate single inheritance?

struct A {}; // base class struct B : A {} // derived class (single inheritance).


How do you write a programme in c language using arrays to store a ten integer data and find the second smallest and second largest elements in the array?

void mail ( ); { int a, b c = a+b; printf ("%d",=c); }


Make programme for multification of three no in c plus plus?

result = a * b * c;