Example 1:
// Arrays
#include <stdio.h>
int main()
{
int star[3]={4,5,6};
int sum;
sum = star[0] + star[1] + star[2];
printf("The sum is %d\n",sum);
return 0;
}
//Video Tutorial for How to run an Array
Example 2:
#include <iostream>
using namespace std;
int main()
{
int star[3]={4,5,6};
int sum;
sum = star[0] + star[1] + star[2];
cout<<"The sum is "<<sum<<"\n";
return 0;
}
// Arrays
#include <stdio.h>
int main()
{
int star[3]={4,5,6};
int sum;
sum = star[0] + star[1] + star[2];
printf("The sum is %d\n",sum);
return 0;
}
//Video Tutorial for How to run an Array
Example 2:
#include <iostream>
using namespace std;
int main()
{
int star[3]={4,5,6};
int sum;
sum = star[0] + star[1] + star[2];
cout<<"The sum is "<<sum<<"\n";
return 0;
}
This Website is Easy to Learn and usefull and my douts is remove after learn this website.
ReplyDeletewow nice coding to understand.....
ReplyDelete