C Program to find Square Root of a Number #include <stdio.h> #include <conio.h> #include <math.h> int cuberoot(int c); void main() { int a , b; printf("enter number :"); scanf("%d",&a); // b = a * a; b = cuberoot(a); printf("cube root is %d",b); getch(); } int cuberoot(int c) { int m,a1; int i; for(i=1;i<c;i++){ m = i * i * i; if(m==c){ a1 = i; } } return a1; }
Posts
Showing posts from July, 2018
- Get link
- X
- Other Apps
Write a C Programming using Celsius to Convert Fahrenheit. #include<stdio.h> #include<conio.h> void main(); { float celsius,Fahrenheit; clrscr(); printf("\n Enter Temp in Celsius :"); scanf("%f",&celsius); fahrenheit= (1.8*celsius)+32; printf("\n Temperature in Fehreneit : %f ",fahrenheit); getch(); }
- Get link
- X
- Other Apps
PHP - Insert Form Data Into MYSQL Database Using PHP <!DOCTYPE html> <html> <head> <title>Hello World</title> </head> <body> <form action="" method="POST"> <tr> <td> <label>USERNAME:</label> <input type="text" name="name"> </td> </tr> <tr> <td><br><br> <label>LASTNAME:</label> <input type="text" name="lname"> </td> </tr> <tr> <td><br><br> <label>MIDDELNAME:</label> <input type="text" name="mname"> </td> </tr> <tr> <td><br><br> <label>EMAIL:</label> <input type="text" name="email"> </td> </tr> <tr> <td><b...
- Get link
- X
- Other Apps
Write a C program to perform addition, subtraction, multiplication,Modulus and division of two numbers. #include<stdio.h> #include<conio.h> void main() { clrscr(); int num1,num2; int sum,sub,multi,div,mod; printf("Enter The First Any Numbers :"); scanf("%d",&num1); printf("Enter The Second Any Number :"); scanf("%d",&num2); sum=num1+num2; sub=num1-num2; multi=num1*num2; div=num1/num2; mod=num1%num2; printf("The Number of sum : %d",sum); printf("The Number of sub : %d",sub); printf("The Number of multi : %d",multi); printf("The Number of div : %d",div); printf("The Number of mod : %d",mod); getch(); }
- Get link
- X
- Other Apps
Write a Program to Find The Square And Cube Using C Program. #include<stdio.h> #include<conio.h> void main() { clrscr(); int number,square,cube; printf("\n Enter The Any Numbers :"); scanf("%d",&number); square= number*number; cube= square*number; printf("\n Square of %d is = %d",number,square); printf("\n\n Cube of %d is = %d", number,cube); getch(); }
- Get link
- X
- Other Apps
Write a programming C to Check Enter Year Is a Leap Year & Not Leap Year. #include<stdio.h> #include<conio.h> void main() { clrscr(); int year; printf("\n Enter A Year"); scanf("%d",&year); if (year %4 == 0) { printf("\n Enter The Year is Leap Year"); } else { printf("\n Enter The Year is Not Leap Year"); } getch(); }
- Get link
- X
- Other Apps
Write a programming C to calculate of any subjects and find percentage #include<stdio.h> #include<conio.h> void main() { clrscr(); int s1,s2,s3,s4,s5,sum; float avg; printf("Enter the Marks of Five Subjects"); scanf("%d %d %d %d %d",&s1,&s2,&s3,&s4,&s5); sum=s1+s2+s3+s4+s5; avg=sum/5; printf("\n total marks in five subjects:"); printf("%d",sum); printf("\n Percents of subjects:"); printf("%f",avg); getch(); }
- Get link
- X
- Other Apps
Write a Program to enter any two number and display addition of Using C Programming Language #include<stdio.h> #include<conio.h> Void main() { Int a,b,total; c lrscr(); Printf(“Enter the First Number : ”); Scanf(“ %d”,&a); Printf(“Enter Second Number :”); s canf(“%d”,&b); total=a+b; Printf(“total is : %d”,total); getch(); } Youtube Link : https://youtu.be/I1nYGlfpgz0