boost learn study
Sunday, November 17, 2013
If Statement - C Programming
/*Any Number is input through the keyboard. write a If program.*/ #include< stdio.h >#include< conio.h >void main() { int n; n=1; clrscr(); //clrscr() is the function of #include< conio.h > header file which will clear previous output of program printf("Enter the Number"); scanf("%d",&n); if(n>0) { printf("It is If Statement"); } getch(); }
Read more �
Monday, November 11, 2013
The program which show the use of printf() & scanf() function
#include
#include
void main() { char name[20]; clrscr(); printf("Enter the Name"); scanf("%d",&name); printf("Name is %d :",name); puts(name); getch(); }
Output
Enter the Name
Laura
Name is :
Laura
Read more �
Program to illustrate the concept of puts() with gets() functions
#include
#include
void main() { char name[20]; clrscr(); puts("Enter the Name"); gets(name); puts("Name is :"); puts(name); getch(); }
Output
Enter the Name
Laura
Name is :
Laura
Read more �
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)