လာလည္ေသာမိတ္ေဆြအေပါင္းတို႔ တစ္ေန႕ကို ကုသုိလ္ ၊ ပညာ ၊ ဥစၥာ တစ္ခုခုကို ရရွိၾကပါေစ။

Monday, March 5, 2012

c progrmming tutorials

#include<stdio.h>
 
main()
{
    int a;
 
    printf("Enter an integer\n");
    scanf("%d", &a);
 
    printf("Integer that you have entered is %d\n", a);
 
    return 0; 
 }
 ဒီ program ေလးကေတာ့ မိမိတို႕ ႏွစ္သက္ရာ ရုိက္လိုက္တဲ့ ဂဏန္းေတြကို  ေဖာ္ျပေပးမယ့္ program ေလးပါ..
ဒီမွာဆိုရင္ေတာ့ a သည္ int ျဖစ္ပါတယ္လို႔ အရင္ဆုံး ေၾကျငာထားပါတယ္..int(integer)ကိုဆိုတာပါ..ေနာက္ %d ကေတာ့ 
တန္ဖိုးေတြကို ေဖာ္ျပေပးမွာျဖစ္ျပီး &a ကေတာ့ ရုိက္လိုက္တဲ့ တန္းဖိုး=a ကိုရည္ညြန္းပါတယ္..ေနာက္ေဖာ္ျပေပးမယ္ေပါ့...စမး္သပ္
ရင္းေပ်ာ္ရြင္ပါေစ..

No comments: