Search This Blog

Monday, 18 May 2020

programming C(repetition)

  flow chart to display the following number series(while)


#include <stdio.h>


int main()
{
  int counter=1;

  while(counter<=100)

  {
      printf("%d",counter);
      counter++;
  }
}
    
   
                                                                                                                                



fun code (this is error not correct code only for funny)      
                                                                                                                   
while("counter<=100 \n")
add this one for "while" part







No comments:

Post a Comment

please wait...