18. write a program to print a number from 0 to 10 by using for loop #include #include void main() { clrscr(); int i; for(i=0;i<=10;i++) { cout<<"\nnumber is="<
19. write a program to print a number from 10 to 0 by using for loop
#include #include void main() { clrscr(); int i; for(i=10;i>=0;i--) { cout<<"\nnumber is="<
20.Write a number to print a table of any given number by using for loop #include #include void main()
{ clrscr(); int i,a,c; cout<<"enter number="; cin>>a; for(i=1;i<=10;i++) { c=a*i; cout<<"\ntable"<
Related Documents
More Documents from "Brian Underwood"