Skip to main content

Posts

Showing posts with the label example c program

Sample C Program To Print Welcome Message.

#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 Sou...