by admin | Jan 25, 2024 | C Programming
Design 1: ############### #include<conio.h>#include<stdio.h>void main(){clrscr();int i,j;for(i=1;i<=5;i++){for(j=1;j<=i;j++){printf(“#”);}printf(“n”);}getch();} Design 3: 100111000011111...
by admin | Jan 25, 2024 | C Programming
Print “I love dogs” n times. #include<conio.h>#include<stdio.h>void main(){clrscr();int i,n;scanf(“%d”,&n);for(i=1;i<=n;i++){printf(“I love dogsn”);}getch();} Print even numbers from 1 to n....
by admin | Jan 25, 2024 | C Programming
While Loop Main concept while(condition){statement;} Do While Loop Main concept do{statement;}while(condition); AS LONG AS THE CONDITION IS VALID, THE STATEMENT, INSIDE THE WHILE (OR DO WHILE) LOOP, WILL KEEP ON RUNNING, NO MATTER WHAT THE STATEMENT IS Print even...
by admin | Jan 25, 2024 | C Programming
Expression Meaning a==b a is equal to b a!=b a is not equal to b a<=b a is less than equal to b a>=b a is greater than equal to b a<b a is less than b a>b a is greater than b a%b remainder of a÷b a/b quotient of a÷b || or && and Print wheather a...
by admin | Jan 25, 2024 | C Programming
Header Files conio.h: CONsole Input Output (getch, clrscr) stdio.h: STanDard Input Output (scanf, printf) math.h: Mathematical functions (pow, sqrt, sin, cos, exp) string.h: Character & string functions (char, strlen, String) THERE ARE MANY OTHER HEADER FILES IN...