#include<math.h> main()
{
int s=1,n,x,i;
clrscr();
printf("enter value of n");
scanf("%d",&n);
printf("enter value of x");
scanf("%d",&x);
for(i=1;i<=n;i++)
{
s=pow(x,i);
}
printf("sum of series=%d",s);
getch();
}
The series is:
1
22
333
4444
55555
Program:
void main()
{
int multfactor = 1,x;
for(i=1;i <= 5;i++)
{
x = i*multfactor;
printf("%d\n",x);
multfactor = (multfactor << 3) + (multfactor << 1) + 1;
}
}
write a shell script to print thi format
*
**
***
****
*****
int main (void) { puts ("the sequence"); return 0; }
#include
#include
void main()
{
int num=9,i;
clrscr();
printf("%d ",num);
for(i=4;i
string s = "asdfqwer"; s = s.ToUpper(System.Globalization.CultureInfo.CurrentCulture);
write a c program to display marks,total,average,grade using union
You do nothing! A sequence of numbers will contain no X and so nothing needs doing!
Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.
Check outhttps://github.com/bramp/js-sequence-diagrams
write a c program to accept a number and generate a square root cube and exponential values
Yes, I can.
string s = "asdfqwer"; s = s.ToUpper(System.Globalization.CultureInfo.CurrentCulture);
write a c program to display marks,total,average,grade using union
You do nothing! A sequence of numbers will contain no X and so nothing needs doing!
Generate Fibonacci sequence by adding the two previous integers together to get the next number in the sequence. Starting with the lowest two number on the real number line. 0,1,1,2,3,5,8,13,21,34,55,89,144 etc.
Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.
Check outhttps://github.com/bramp/js-sequence-diagrams
No, that's what the compiler does.
A sequence is just an ordered set of events. You write it by telling what happened in order.
You will need to have a little bit of computer science knowledge. This will help you to make the programing.
yes, use for loop;;