Posts

Showing posts from 2018
      Write a C Programming Language using given number of Days into Months and Days.      #include<stdio.h>     #include<conio.h>       void main()   {         int months,days;         clrscr();         printf("Enter days /n");         scanf("%d",&days);        months=days/30;        days=days%30;        printf("Months = %d Days = %d",months,days);       getch(); }
C Program to find Odd & Even Number #include <stdio.h> #include<conio.h>   int main ( ) { int n ;   printf ( "Enter an integer \n " ) ; scanf ( "%d" , & n ) ;   if ( n % 2 == 0 ) printf ( "Even \n " ) ; else printf ( "Odd \n " ) ;   getch() ; }
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; }
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(); }
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...
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(); }
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(); }
Write a Program to Convert Kilometer To Meter Using C Programming Language. #include<stdio.h> #include<conio.h> void main() {    clrscr();    float km,m;        printf("\n Enter The Distance in Kilometers : ");    scanf("%f",&km);    m=km*1000;    printf("The Equivalent Distance Is Meter is : %f",m);        getch(); }  
         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(); }  
          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(); }  
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
      Write a java program to check palindrome number.       class Fibonacci_1    {       static int n1=0,n2=1,n3=0;       static void print Fibonacci (int count)   {       if (count>0)   {       n3 = n1 + n2;       n1 = n2; n2 = n3;       System.out.print (" "+n3);       printFibonacci (count-1);  } }  public static void main(String args[]) {  int count=10;  System.out.print(n1+" "+n2);        //printing 0 and 1  printFibonacci(count-2);             //n-2 because 2 numbers are already printed  } }                                                          OUT PUT   ...