xxxxxxxxxx
// C program to demonstrate putchar() method
#include <stdio.h>
int main()
{
// Get the character to be written
char ch = '1';
// Write the Character to stdout
for (ch = '1'; ch <= '9'; ch++)
putchar(ch);
return (0);
}
xxxxxxxxxx
// C program to demonstrate putchar() method
#include <stdio.h>
int main()
{
// Get the character to be written
char ch = 'G';
// Write the Character to stdout
putchar(ch);
}
xxxxxxxxxx
// C program to demonstrate putchar() method
#include <stdio.h>
int main()
{
// Get the character to be written
char ch = '1';
// Write the Character to stdout
for (ch = '1'; ch <= '9'; ch++)
putchar(ch);
return (0);
}