NevLabs

Under Construction

NevLabs

Under Construction

NevLabs

Under Construction

NevLabs

Under Construction

NevLabs

Under Construction

Thursday, July 28, 2011

Sum of elements of a matrix

#include<stdio.h>
void main()

Display whole numbers upto a given number

#include<stdio.h>
void main()

{
int i,num=0,n;
clrscr();
printf("Enter the limit : upto ");
scanf("%d",&n);
for(i=0;i<n;i++)
 {
 num+=1;
 printf("%d\t",num);
 }
getch();
}

Display whole numbers between two given numbers

#include<stdio.h>
void main()

{
int i,j,num,k,initial;
clrscr();
printf("Enter the limit :  ");
scanf("%d%d",&j,&k);
if(j>k)
{
num=j-k;
initial=k;
}
else
{
num=k-j;
initial=j;

Whole numbers from 100 to 2

#include<stdio.h>
void main()

Volume of a box

#include<stdio.h>
void main()

Find the Area, Perimeter of a rectangle

#include<stdio.h>
void main()