डाउनलोड पी.डी.एफ. ई-बुक्स
C - Square Of Number

विवरण :

कोई विवरण नहीं है |


सोर्स कोड :

#include <stdio.h>
#include <conio.h>

int square (int s);

void main (){

int a ,b;

printf ("
Enter the number = ");
scanf ("%d",&a); 

b = square(a);
printf ("
The square of %d is %d",a,b);

getch ();
}
int square (int s){
int c;
c= s*s;
return (c);
}

आउटपुट :

Enter the number = 5 (you entered : 5)
The square of 5 is 25