Simple even and odd number program in c language #include<stdio.h>#include<conio.h>main(){int i;clrscr();for(i=0;i<=30;i++){if(i%2==0){printf("even values are%d",i);}else{printf("odd number");}}getch(...
while loop in c | check password using while loop example| implement strcmp| #include<stdio.h>#include<conio.h>void main(){void pass();clrscr();pass();printf("\n\nNow you can proceed...........\n");getch();}void pass(){char ar[30],ch;int i=0;printf("\n\nEnter password\n");while(1){ch=getch();if(ch==13)break;else{ar[i]=ch;i++;printf("*");}}ar[i]='\0';if(strcmp(ar,"username")==0)return;else{printf("Invalid...
C line project folders | in Graphics #include<stdio.h>#include<conio.h>#include<graphics.h>void main(){int gd=DETECT,gm;int i,j;initgraph(&gd,&gm,"");setcolor(BLUE);setfillstyle(SOLID_FILL,RED);i=getmaxx();j=getmaxy();while(1){if(kbhit()){break;}setfillstyle(SOLID_FILL,RED);for(i=10,j=20;i<=300,j<=400;i+=5,j+=10){outtextxy(i/2,j/2,"new...
Logic and examples of file handling in c laguagec pattern | programs | source code C | File Handling programs | Free Source Code | comments write the simple program for file handling#include<stdio.h>//header files//void main() { ///start of main//FILE *f1,*f2,*f3;...
Logic and examples to show switch case demo in c programming languageswitch case program source code #include<stdio.h>#include<conio.h>void main(){int n;clrscr();printf("Enter a no:\n");scanf("%d",&n);switch(n){case 1 : printf("One");break;case 2 : printf("Two");break;case...