Skip to main content

Posts

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">     ...
Recent posts

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 $ $$$ $$$$$ $$$$$$$ $$$$$$$$$
Write a c program or code to subtract two numbers without using subtraction operator #include <stdio.h> int main(){         int a,b;     int sum;     printf( "Enter any two integers: " );     scanf( "%d%d" ,&a,&b);     sum = a + ~b + 1;     printf( "Difference of two integers: %d" ,sum);     return 0; } Sample Output: Enter any two integers: 5 4 Difference of two integers: 1
How to calculate power of a number in c How to write power in c #include <stdio.h> int main(){   int pow,num,i=1;   long int sum=1;   printf( "\nEnter a number: " );   scanf( "%d" ,&num);   printf( "\nEnter power: " );   scanf( "%d" ,&pow);   while (i<=pow){             sum=sum*num;             i++;   }   printf( "\n%d to the power %d is: %ld" ,num,pow,sum);   return 0; }  output: Enter the number: 5 Enter the  Power:6   5 to the power 6 is :  15625  
Extract digits from integer in c language #include <stdio.h> int main(){   int num,temp,factor=1;   printf( "Enter a number: " );   scanf( "%d" ,&num);   temp=num;   while (temp){       temp=temp/10;       factor = factor*10;   }   printf( "Each digits of given number are: " );   while (factor>1){       factor = factor/10;       printf( "%d " ,num/factor);       num = num % factor;   }   return 0; } Sample output: Enter a number: 123 Each digits of given number are: 1 2 3
Add two numbers in c without using operator How to add two numbers without using the plus operator in c #include <stdio.h> int main(){         int a,b;     int sum;     printf( "Enter any two integers: " );     scanf( "%d%d" ,&a,&b);     //sum = a - (-b);     sum = a - ~b -1;     printf( "Sum of two integers: %d" ,sum);     return 0; } Sample output: Enter any two integers: 5 10 Sum of two integers: 15 Algorithm: In c ~ is 1's complement operator. This is equivalent to:   ~a = -b + 1 So, a - ~b -1 = a-(-b + 1) + 1 = a + b – 1 + 1 = a + b

List of magazines in India

Below is a list of magazines published in India . Steel 360 Indian Steel Price Magazine - Monthly VERVE India's Premier Luxury and Lifestyle International Monthly Magazine Tiles of India Lifestyle Magazine - Bi Monthly LegalEra Legal affair Magazine - Monthly Tehelka News Weekly Industry 2.0 Manufacturing Technology Updates and News Monthly The Business Enterprise Business Monthly The Week Chill Maadi Student Magazine Frontline Electronics For You Technology Monthly CTO Forum - Monthly Yo Vizag Lifestyle Monthly DSA Media Puthiya Thalaimurai - A Weekly Tamil Magazine Shair Urdu Magazine Business Circle magazine Desh magazine Rythubandhu Sportstar Outlook India Today Femina (India) PCQuest Creative Gaga - Bi-monthly Creative Design Magazine Dataquest - Fortnightly Information Technology Sanctuary Asia Himal SustaiNuance - Monthly - Corporate Sustainability magazine Hindi Madhu...