Hello, i have this program in c
I have to expand the program (written in blue) to display stars (*) on the screen.Code:#include <stdio.h> int read_data() { int i; scanf("%d", &i); return i; } int main() { int i = read_data(); if (i > 0) printf("*"); }
How many stars shall be output is written in the variable i.
But how can i do this, i have tried to write it in colour blue but it doesn't worked. When for example the variable i is 5 it should be written *****