COMPUTER SCIENCE AND APPLICATION
ONE STOP SOLUTION
Pages
(Move to ...)
Model question papers1
PHP - Placement Papers
DOT(.) Net Placement Papers
Software Engineering - Placement Papers
Algorithms - Placement Papers
JAVA - Placement Papers
OS Placement Papers
DBMS Placement Papers
C Placement papers
C++ Placement Papers
Environment & Ecology
Gate question with answer
computer organization
Model question-papers 2
MICROPROCESSOR AND MICROCONTROLLER
HOME
2018 model question papers for BCA,CST,MCA and & B.Tech students
C Language 5 years solution of MAKAUT exam ( for BCA only)
Python for Data Science - Course for Beginners (Learn Python, Pandas, NumPy, Matplotlib)
▼
Tuesday, October 21, 2014
Print F patterns with C Language
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,j;
printf("\t enter value of n=");
scanf("%d",&n);
printf("\n\n");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
if(i==0||i==n/2||j==0)
{
printf("*");
}
else
{
printf(" ");
}
}
printf("\n");
}
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment