c and c++ tutorials // online learning spot
point to note -- /* comment */ this is a format of a comment in between code. This has no significance or effect on code.
#include<stdio.d> /* included to use printf() in code */
#include<conio.h> /* included to use getch() in code */
main()
{
printf("I"); /*prints I on screen*/
getch(); /*wait for execution until any key pressed*/
printf("\n N"); /*prints N on screen in new line and leaving 2 spaces then program proceed similarly */
getch();
printf("\n D");
getch();
printf("\n I");
getch();
printf("\n A");
getch();
}
point to note -- /* comment */ this is a format of a comment in between code. This has no significance or effect on code.
#include<stdio.d> /* included to use printf() in code */
#include<conio.h> /* included to use getch() in code */
main()
{
printf("I"); /*prints I on screen*/
getch(); /*wait for execution until any key pressed*/
printf("\n N"); /*prints N on screen in new line and leaving 2 spaces then program proceed similarly */
getch();
printf("\n D");
getch();
printf("\n I");
getch();
printf("\n A");
getch();
}
No comments:
Post a Comment