Pages

Tuesday 14 February 2017

Triangle Of Asterisk '*' in C Language

#include<stdio.h>
int main ()
{
int n,t,i,j,k;
printf("Enter a number");
scanf("%d",&n);
n=n-1;
k=n;
for (i=0;i<=n;i++)
{ j=k;
k=k-1;
while(j!=0)
{printf(" ");
j=j-1;}
for(t=0;t<=i;t++)
{printf("* ");
}
printf("\n");
}
}





Output

Enter a number 
5
    *
   * * 
  * * *
 * * * * 
* * * * *

Monday 13 February 2017

Electromagnetism--One Of The Groundbreaking Phenomenon

electromagnetism
ɪˌlɛktrəʊˈmaɡnɪtɪz(ə)m/
noun
noun: electromagnetism; noun: electro-magnetism
  1. the phenomenon of the interaction of electric currents or fields and magnetic fields.
    • the branch of physics concerned with electromagnetism.






  2. Electromagnetism is a branch of physics involving the study of the electromagnetic force, a type of physical interaction that occurs between electrically charged particles. The electromagnetic force usually exhibits electromagnetic fields such as electric fieldsmagnetic fields, and light and is one of the four fundamental interactions (commonly called forces) in nature. The other three fundamental interactions are the strong interaction, the weak interaction, and gravitation.