hi i'm currently getting a fatal run time error with my program im trying to use while loops to print the stdin horisotaly in 0's in the stdout
#include <stdio.h>
int main( void )
{
int number1, number2, number3, number4, num1;
scanf("%d%d%d%d" , &number1, &number2, &number3, &number4);
printf("%d%d%d%d" , number1, number2, number3, number4);
if(number1 == 1)
num1 = 1;
if(number1 == 2)
printf("%d" , number1);
if(number1 ==3)
printf("%d" , number1);
if(number1 == 4)
printf("%d" , number1);
if(number1 == 5)
printf("%d" , number1);
if(number1 == 6)
printf("%d" , number1);
if(number1 == 7)
printf("%d" , number1);
if(number1 == 8)
printf("%d" , number1);
if(number1 == 9)
printf("%d" , number1);
while (num1 = 1)
{
printf("00 /n" );
printf(" 0 /n");
printf(" 0 /n");
printf(" 0 /n");
printf("000/n");
num1= num1 - 1;}
return 0;}
i do relise that the print f will print the stdin as well as the hopefully print the while loop
as im slighty experimenting hopfully someone can correct me as the fatal runtime error is stopping me