Question

+1 Shantanu Odak · December 21, 2015
Write a program to accept a character and display it 10 time?

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 Laura Lee · December 21, 2015
#include <stdio.>

int main()
{
int i = 0;
int c = fgetc(stdin);
for(i ; i < 10; ++i)
printf("%c\n",c);

return 0;
}
  • 1
  • 2

C

107,149 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator