คำสั่ง Do while
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

คำสั่ง Do while

  • 402 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
402
On Slideshare
402
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. do while#include<stdio.h>#include<conio.h>main(){printf("Nisarat Kramsri No.16 M.6/1nn");Nisarat Kramsri No.16 M.6/1int a,b;printf("Input you keywords :"); Input you keywordsscanf("%d",&a);do{printf("nWhat is a Keywords?n>>"); What is aKeywordsscanf("%d",&b);
  • 2. if(a==b)printf("You win !! nThis number is Keywordsn");You win This number is Keywordselseprintf("Oh this isnt Keywordsn"); Oh this isntKeywords}while(a!=b);getch();}
  • 3. Flowchart Nisarat KramsriNo.16 M.6/1 Input you keywords
  • 4. no What is a KeywordsYou win Thisnumber isKeywords