In this video I have explained, What is the operator like Operator Arithmetic, Logical Bitwise, Ternary and test code.
1. Operators Arithmetic
2. Operators Logical
3. Operators Bitwise
4. Operators Ternary
In this video, I have explained about how to install Visual
Studio 2010 Professional , important of IDE ( Integrated Development Environment), How to use VS.
Here I explain about how returned data array, the total number, average and I have been made code and video in the below. Code #include <stdlib.h> #include <stdio.h> #include <string.h> int main(void) { int ter[5],n=0,k; float total = 0; printf("Enter the amount of data you want:(1 - 5)\n"); printf("Please enter number:"); while(n <= 0 || n > 5){ scanf("%d", &n); } for(k = 0; k<n; k++){ printf("\nEnter %d amount : ",k+1); scanf("%d", &ter[k]); } for(k = 0; k < n; k++){ printf("\nData %d that you have been insert : %d", k+1, ter[k]); total = total + ter[k]; } printf("\n\nTotal amount that have insert : %.0f\n", total); printf("Average amount all the data you insert: %.2f\n", total/n); system("pause"); return (0); } Video Clip
Here I explain about how to calculate volume of triangular Pyramid and volume of Sphere and I think it is not good but it can make your idea better.
Code #include<stdio.h> // Access file stdio.h Library #include<stdlib.h> #include<math.h> int main() { int i; float b,h1,h2,r,pi=3.14159,v; do { printf("Enter number 1 to Calculate Volume of triangular pyramid.\n"); printf("Enter number 2 to calculate Volume of sphere:\n"); printf("Please chose number to Calculate:"); scanf_s("%d",&i); //Enter value i from Keyboard. switch(i) { case 1: // if value equal 1, statement in case 1 execute printf("Calculate the volume of triangular pyramid \n "); printf("Enter Base:"); scanf_s("%f",&b); printf("Enter height of base triangle:"); scanf_s("%f",&h1); printf("Enter height of Pyramid:"); scanf_s("%f",&h2); v=(b*h1*h2)/6;//formula for calculate Volume of triangular pyramid. printf("The volume of triangular pyramid is: %f \n",v); system("lcs"); break; case 2: //if value equal 2, statement in case 2 execute printf("Calculate the volume of sphere \n "); printf("Enter radius of sphere:"); scanf_s("%f",&r); v=((4/3)*pi*(pow(r,3)));//formula for calculate Volume of sphere printf("The volume of sphere is: %f \n",v); system("lcs"); break; default: printf("You have to chose first 1 or 2 to Calculate.\n"); break; } } while((i!=1)&&(i!=2)); //if you input difference number 1 and 2 you must input again. system("pause"); return(0); }
It is the third videos that I have been created and I want to sharing my knowledge, how to use run C program in VB.net and to use arithmetic operations in C language.
1.C program has the following variables.
int i=8,j=5,k;
float x=0.005,y=-0.01, z;
2. 10 Questions and talking about operations to be processed
1. (3*i-2*j)%(2*j-4)
2. 2*((i/5)+(4*(j-3))%(i+j-2))
3. (i-3 *j) % ( 12 +2 *j ) / ( x - y )
4. -(i + j )
5. ++i
6. j!=6
7. ! ( i <= j )
8. i %= j
9. k = ( j ==5) ? i : j
10.k = ( j > 5 ) ? i : j
The video I have been created by C++ and using VB.net. How to show message "Hello World". Code
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
printf("Hello World");
system("pause");
return 0;
}
This video that I have been created and explain by English, How to Calculate Trapezoid and Print Hello world with C program. Code #include<stdio.h> #include<stdlib.h> int main(void) { float base1,base2,height,Calculate; printf("Area of a Trapezoid\n"); printf("base1:"); scanf_s("%f",&base1); printf("base2:"); scanf_s("%f",&base2); printf("Height:"); scanf_s("%f",&height); Calculate= (base1+base2)*height/2; printf("Calculate Trapezoid %.3f\n",Calculate); system("pause"); return 0; } 1. Video Calculate Trapezoid.