Study guides

☆☆

Q: Write a c program to print the 100 to 1 nos?

Write your answer...

Submit

Still have questions?

Related questions

10

simply enter three nos. lyk a b and c and use the code a*b*c and print the result!!

#include #include#define N 100 /* change the upper limit by changing value of N */int main(){int i;clrscr();printf("\nPROGRAM TO PRINT NUMBERS DIVISIBLE BY 8 between 1 and 100\n");for(i=1;i

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

nos vemos

10,000,000

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); }

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

Write (to) us

#include<constream.h> void main() { int a,b,i=1; cout<<"Enter a no till when u want print non fibonaci numbers\t:" cin>>c; cout<<"\n Non fibonaci nos \n:" for(a=0,b=1;i<=c;i++) { if(i==(a=a+b)) continue; if(i==(b=a+b)) continue; cout<<i \t; } }

No most are odd nos.

Each one of them can be expressed as a sum of two primes.

People also asked