Posts

Showing posts from December, 2020

C language

//Hello World!// #include<stdio.h> #include<conio.h> void main() { clrscr();    printf("Hello World!"); getch(); }   // Input/Output (scanf/printf) // #include<stdio.h> #include<conio.h> void main() { clrscr(); int num;      printf("Enter Number:");    scanf("%d",&num);    printf("\n Entered Number: ",num); getch(); }   //Condition//   #include<stdio.h> #include<conio.h> void main() {  int num;  clrscr();  printf("Enter Value:");  scanf("%d",&num);  num > 10 ? printf("Num is Big then 10") : printf("10 is big then Num");  getch(); } // Types of variables: //   #include<stdio.h>