Posts

Showing posts from March, 2015

C pattern program of stars and alphabets:

     *    *A*  *A*A* *A*A*A* 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 #include<stdio.h> main() { int n, c, k, space, count = 1 ; printf( "Enter number of rows \n " ); scanf( "%d" , & n); space = n; for ( c = 1 ; c <= n ; c ++ ) { for ( k = 1 ; k < space ; k ++ ) printf( " " ); for ( k = 1 ; k <= c ; k ++ ) { printf( "*" ); if ( c > 1 && count < c) { printf( "A" ); count ++ ; } } printf( " \n " ); space -- ; count = 1 ; } return 0 ;

About in C programmin

C programming is an ANSI/ISO standard and powerful programming language for developing real time applications. C programming language was invented by Dennis Ritchie at the Bell Laboratories in 1972. It was invented for implementing UNIX operating system. C programming is most widely used programming language even today. All other programming languages were derived directly or indirectly from C programming concepts. C programming is the basis for all programming languages. This C programming tutorial explains all basic concepts in C like history of C language, data types, keywords, constants, variables, operators, expressions, control statements, array, pointer, string, library functions, structures and unions etc. This C programming tutorial is designed for the new learners, students and also for the corporate level developers who want to learn and refresh their C programming skills. C is a general-purpose high level language that was originally developed by Dennis Ritchie for the...