Write a C program to be char punctuation.
Menu
Turn Mobile View Off
by Dinesh Thakur

 

 

#include<ctype.h>

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
for(;;)
{
ch = getchar();
if(ispunct(ch)) printf("%c is punctuation\n", ch);
if(ch = '.') break;
}
getch();
}
 
OUTPUT:
.
. is punctuation
Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off