Â
In this, we are going to see for loop, the program is based on for loop which basically, prints a character defined by user 10 times with the help of the C Programming language.Â
#include <stdio.h>
int main()
{
//Taking character/symbol from user
int i;
char c;
printf("Enter a symbol/character:- ");
scanf(" %c", &c);
for (i = 0; i < 10; i++)
{
printf(" %c\n", c);
}
return 0;
}
//......Coded by YASH ALAPURIA
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP