DO NOT MISS

Ads

Thursday 28 July 2016

Program 2 Using While loop

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

void main()

       {

             int i,n;
             clrscr();

             printf("enter n value");
             scanf("%d",&n);

             i=1;

             
while(i<=n)

                    {

                         printf("MY NAME IS DURGA PRASAD\n");
                         i++;

                    }

             getch();

       }

Output:-
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________

Greataims

 
Copyright © 2016 Computersadda. Designed by @ Computersadda Team - Published By Greataims