#include <conio.h>
#include <stdio.h>
main()
{
int n,a[8] //depending on size of array
FILE *fin;
fin=fopen("a:data.c","r") //that reads the file
fscanf("%d\n",&a[n]);
Type: Posts; User: mouse
#include <conio.h>
#include <stdio.h>
main()
{
int n,a[8] //depending on size of array
FILE *fin;
fin=fopen("a:data.c","r") //that reads the file
fscanf("%d\n",&a[n]);
I'm having a problem writing a code to build a triangle that will expand depending on the user.
How do u tell C to go to the next line with each number?
You have to enter a number and the triangle...