how do we use loops in c plus plus programing and what are basic differences between do,for and while loop
Write a c program to print the 100 to 1 nos
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
#include
write a program to print the series 1/12+1/22+.........+1/n2 ?
fdsgfhgdfhgdf
write a program to print A to Z on screen in c?
This is a homework question and does not deserve an answer because you will learn nothing other than being lazy.
Reference:http:cprogramming-bd.com/c_page2.aspx# strange number
printf ("initials");
// simple program to generate first ten prime numbers #include<stdio.h> #include<conio.h> void main() { int c,i,j,n; clrscr(); for(i=2;i<30;i++) { c=0; for(j=2;j<i;j++) { if(i%j==0) {c=c+1; } } if(c==0) printf("%d",i); } getch(); }
# include<stdio.h> main() { int a,b,c; print f("enter the values of a,b,c"); scan f("%d%d%d",&a,&b,&c); if((a>b)&&(a>c)) print f("Greatest value is a =%d",a); else if((b>a)&&(b>c)) print f("Greatest value is b=%d",b); else print f("Greatest value is c=%d",c); }
first sort the ten numbers in descending order and print the first number. That will be the largest no