Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Write a program, enter a short integer (> 0), and output each number, with periods separated by commas.
Write a program, enter a short integer (> 0), and output each number, with periods separated by commas.
# include & ltstdio.h & gt

empty

Master ()

{

Internationalorganizations (same as international organizations)

Num, me;

tea

buf[50];

Printf ("Please enter a number:");

scanf("%d ",& ampnum);

sprintf(buf," %d ",num);

for(I = 0; buf[i+ 1]! ='\0'; i++)

printf("%c,",buf[I]);

printf("%c ",buf[I]);

}