Study guides

☆

Q: Find the sum of 1 plus 2 plus 3 plus . plus n nos using c program?

Write your answer...

Submit

Still have questions?

Continue Learning about Engineering

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.

#include#include#includevoid main(){int i,j;clrscr();for(i=3;i

main() { int i,sumo=0,sume=0,oddno,evenno; for(i=1,oddno=1,evenno=2;i<=100;++i,oddno=oddno+2,evenno=evenno+2) { sumo=sumo + oddno; sume=sume + evenno; } printf("Sum of odd nos = %d And Sum of even nos = %d,sumo,sume); }

Use a linked-list.

/* program to calculate sum of two no.s in c*/ #include<stdio.h> #include<conio.h> void main() { int a,b,sum; clrscr(); cout("enter 2 nos"); cin("%d %d ",&a,&b); sum=a+b; cout("sum is %d",sum); getch(); }

Related questions

if (*&a > *&b) *&max = *&a; else *&max = *&b;

10

void swap (int &pa, int &pb) { *pa ^= *pb; *pb ^= *pa; *pa ^= *pb; }

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.

How do you lose weight using super nos pump

If both Windows and Unix are using TCP/IP as their primary NOS there isn't much difference to speak of.

#include#include#includevoid main(){int i,j;clrscr();for(i=3;i

int sum (int n) { if (n<=1) return n; else return n + sum (n-1); }

main() { int i,sumo=0,sume=0,oddno,evenno; for(i=1,oddno=1,evenno=2;i<=100;++i,oddno=oddno+2,evenno=evenno+2) { sumo=sumo + oddno; sume=sume + evenno; } printf("Sum of odd nos = %d And Sum of even nos = %d,sumo,sume); }

It depends on the series.

The difference is using a NOS ( Network Operating System), A Domain uses a NOS whereas a Workgroup does not.

To see what we find.

People also asked