Adsense 728 * 15

Search

Custom Search

C program to print first ten numbers


Write a c program to print first ten numbers


#include<stdio.h>
#include<conio.h>


void main()
{


for(int i=1;i<=10;i++)
   {
 printf("%d\n",i);
    }


getch();
}


Output
1
2
3
4
5
6
7
8
9
10



Write a c++ program to print first ten numbers


#include<iostream.h>
#include<conio.h>


void main()
{


for(int i=1;i<=10;i++)
   {
cout<<i<<endl;
    }


getch();
}


No comments:

Post a Comment