Skip to main content

Posts

Showing posts from 2014

CREATING RESPONSIVE LAYOUT

HTML CODE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>::Responsive Layout::</title> <link rel="stylesheet" href="css/style.css"/> </head> <body class="body"> <header class="mainheader"/> <img src="img/logo.png"  alt="logo"/> <nav>   <ul>     <li class="active"><a  href="#">Home</a></li>     <li><a href="#">About</a></li>     <li><a href="#">Portfoliow</a></li>     <li><a href="#">Contact</a></li>   </ul> </nav> </header> <div class="maincontent">   <div class="content">     ...

CREATE A PYRAMID PROGRAM IN C

#include<stdio.h> #include<conio.h> void main() {    int row, c, n, temp;    printf("Enter the number of rows in pyramid of stars you wish to see ");    scanf("%d",&n);    temp = n;     for ( row = 1 ; row <= n ; row++ )    {       for ( c = 1 ; c < temp ; c++ )          printf(" ");        temp--;        for ( c = 1 ; c <= 2*row - 1 ; c++ )          printf("$");        printf("\n");    }  getch(); } OUTPUT: Enter the number of rows in pyramid of stars you wish to see: 5 $ $$$ $$$$$ $$$$$$$ $$$$$$$$$