Write a program for the demonstration of continuity in C using Do While loop

//this is a program for the demostration of continuity
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;

do{
printf("\n\nEnter any Character(To Exit Press 'x'): ");
scanf(" %c",&ch);

printf("\n\nCharacter=%c",ch);
}while(ch!='x'&&ch!='X');

getch();
}

Previous
Next Post »