#include <stdio.h>
int main()
{
printf( "Welcome to C Programming World. \n" );
getchar();
return 0;
}
OUTPUT:
Welcome to C Programming World.
Sample C Program To Accept & Display A Number.
#include <stdio.h>
#include <conio.h>
main()
{
int number;
printf("Enter an integer ");
scanf("%d", &number);
printf("Integer that you have entered is %d",number);
getch();
return 0;
}
OUTPUT:
Enter an integer 9
Integer you have entered is 9
ALSO READ:
-- C Program To Print First Ten(10) Natural Numbers.
-- C Program To Print Fibonacci Series Upto 100.
-- C Program To Check Whether A Number Is Prime Or Not.
-- C Program To Compute The Reverse Of A Number.
-- C Program To Print A Semicolon Without Using A Semicolon.
-- C Program To Display Function Without Using The Main Function.
-- C Program To Print Any Print Statement Without Using Semicolon.
-- C Program To Display Its Own Source Code As Its Output.
-- C Program To Swap Two Strings Using strcpy() Function.
-- C Program to accept a string and print the reverse of the given string.
-- C Program To Get IP Address.
-- C Program To Accept An Integer & Reverse It.
-- C Program To Convert Given Number Of Days To A Measure Of Time Given In Years, Weeks & Days.
-- C Program To Illustrate The Concept Of Unions.
-- C Program To Find The Size Of A Union.
... Back To C++ Programs Index
... Back To C++ FAQ's Index
... Back To C Programs Index
... Back To C FAQ's Index
... Back To HR Interview Index
What happens if /n is not included in the print f statement
ReplyDelete