Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

segmentation fault(core dumped)right half pyramid using # in c

$
0
0
#incude <cs50.h>
#include <stdio.h>


Int main(void)

{


Int x;y;z;

While(x<0)

{

printf("enter number_");
Scanf("%d"x);

}



for(y=o,y=x,y>,y--)
for(z=0,z>=x,z++)
{
printf(" ");
Print("#");
Print("\n");
return0;

}




}

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>