Actually this is a quiz from frist week of cs50 course. I guess I wrote the code correctly!
#include <stdio.h>
#include <cs50.h>
int main(void)
{
int n;
n = get_int("Enter a number: ");
for(int i = 0; i < n; i++){
for(int j = 0; j < n; j++){
printf("#");
}
printf("/n");
}};
};
output should be:
#
##
###
####
and so on...
I don't know what is wrong with my code. can anyone help please.
Aucun commentaire:
Enregistrer un commentaire