#include <stdio.h> #include <stdlib.h> struct student { char name[50]; char father[50]; char city[50]; int roll; } a; int data(); int info(char a[50],char b[50],char c[50],int d); int main() { // Calling Function to input data data(); } int data() { // Taking Input From User printf(“\n Enetr Student Name = “); scanf(“%s”,&a.name); printf(“\n Enetr Father Name […]
#include <stdio.h> #include <stdlib.h> int main() { int a,b; printf(“Enter the number\n”); scanf(“%d”,&a); b=sqrt(a); printf(“The square root of the number is %d”,b); return 0; }
#include <stdio.h> #include <stdlib.h> int main() { int r; printf(“The the value =”); scanf(“%d”,&r); r=r/2; printf(“The value of radius is %d”,r); return 0; }
#include <stdio.h> #include <stdlib.h> int main() { int a,b,c=0; printf(“Enter a number=”); scanf(“%d”,&a); for(b=1;b<=a;b=b+1){ if(a%b==0){ c++; } } if(c==2){ printf(“The number is prime\n”); } else{ printf(“The number is not prime\n”); } return 0; }