MyblogAd

Saturday, August 17, 2013

1.enter the start and end from user and find the square between the numbers...?.

#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
void main()
{
int a, b,i;
 printf("enter the numbers start");
 scanf("%d",&a);
 printf("enter the numbers end");
 scanf("%d",&b);
 for(a=a;a<=b;a++)
 {
    i=a*a;
    printf("\n %f",i);
 }

No comments:

Post a Comment