//WAP using for loop to print numbers from 1 to 10.
#include<iostream.h>
#include<stdlib.h>
int main()
{
system("cls");
int i; //declaring variable i
for(i=1;i<=10;++i)
cout<<i<<"\t";
return 0;
}
OUTPUT
No comments:
Post a Comment