EASY 2 LEARN 'C'
Home
DotNet
Thursday, 30 August 2012
Reverse floyds triangle
Reverse floyds triangle
:-
#include<stdio.h>
main()
{
int i,j,k;
i=7;
for(j=3;j>=0;j--)
{
for(k=0;k<=j;k++)
{
printf("%d ",(i+k));
}
i=i-j;
printf("\n");
}
getch();
}
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Search Box
'C' Language
'C' Programming
(27)
Arrays in 'C'
(5)
Interview Que's about 'C'
(8)
Strings in 'C'
(4)
Popular Posts
One dimensional array example 2
One dimensional array example /* program to calculate sum of 10 numbers in an array */ #inc...
Check prime number up to 100
C heck prime number up to 100 :- #include<stdio.h> main() { int n,i,count; for(n = 1;n<=100;n++) { count = 0; for(i=2;i...
Conditions of the variables
Conditions of the Variables Condition is a comparison between variables. Conditions are divided i...
check addresses are correct or not
/* cosider 3 variables and find the addresses ,first two variables addresses difference is equal to another two variables ...
a program for do-while loop
A program for do-while loop syntax :- { ...
string functions
Strings are used in string handling operations such as, Counting the length of a string. Comparing two strings. Copyin...
Temperature Conversion
Temperature Conversion #include<stdio.h> main() { ...
String functions programs
Program for comparison between two strings :- #include<stdio.h> #include<string.h> main() ...
string examples
#include<string.h> main() { char arr1[9]={'w','e','l','','c','o','m',...
'C' interview questions
'C' Interview Questions * Without using (;)semicolon print the message? Ans...
0 comments:
Post a Comment