Sunday, 21 January 2018

Program for Traingle


Program for Traingle
#include<stdio.h>
#include<conio.h>
main()
{
int n,i,j,t=1;
clrscr();
printf("enter the value:");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)

{
printf("%3d",t);
t=t+1;
}
printf("\n");
}
getch();
}

Related Posts:

  • Closing A File & File Functions Closing A File & File Functions When we have finished all operations the file must be closed . This ensures that all outstanding information associated with the file is flushed out from the buffers and all links to… Read More
  • Defining And Opening A File Defining And Opening A File  If we want to store data in a file in the secondary memory, we must specify certain things about the file , to the operating system. They include:  1.File name.  2.Data Structu… Read More
  • Difference Between The Macros And Functions Difference Between The Macros And Functions Macros are like functions but there is difference between those two . 1. In macro call the processor replaces the macro template with its macro expansion. Where as in functi… Read More
  • Random Access Files Random Access Files Random access to files are required when we want to access only particular part of a file instead of reading and writing data sequentially.This can be achieved by using the functions like : fseek,fte… Read More
  • Inroduction To PreProcessors Inroduction To PreProcessors INTRODUCTION:     The C preprocessor is a program that processes our source program before it is passed to the compiler.This is a  capability that does not exist in many other … Read More

0 comments:

Post a Comment