মঙ্গলবার, ২৬ ফেব্রুয়ারী, ২০১৩

Basic Programming with C


Question: What are the five basic data type in c?
Answer: The five basic data type in c are-

  1. char
  2. int
  3. float
  4. double
  5. void
Question:Write a program that add two integer value.
Answer:
#include<stdio.h>
int main( )
{int a,b,c;
printf("Enter two integer value");
scanf("%d%d",&a,&b);
c=a+b;
prinntf("%d",c);
return 0;

Question: Write a program that prints the number from 1 to 100.
Answer:
#include<stdio.h>
int main( )
{ int i;
for(i=1;i<=100;i++)
printf("%d",i);
return 0;
}

Question:Write a program that inputs two floating -point numbers (use type float ) and then display their sum.
Answer:
#include<stdio.h>
int main( )
{ float i,n,k;
printf("Enter your numbers");
scanf("%f%f",&i,&n);
k=i+n;
printf("The sum is %f",k);
return 0;
}

Question:Write a program that print 1 through 1000 using for loop.
Answer:
#include<stdio.h>
int main( )
{int i;
printf("The number 1 through 1000 is:");
for(i=1;i<=1000;i++)
printf("%d",i);
return 0;
}








Read more »

শনিবার, ২৩ ফেব্রুয়ারী, ২০১৩

রবিবার, ১৭ ফেব্রুয়ারী, ২০১৩

COMPUTER


Hardware
Mechanical devices in the computer
Anything that can be touched
Software
Tell the computer what to do
Also called a program
Thousands of programs exist
Read more »

শুক্রবার, ১৫ ফেব্রুয়ারী, ২০১৩

বৃহস্পতিবার, ১৪ ফেব্রুয়ারী, ২০১৩

News

This video is upload from magagine function ettadi.This video is upload by Miraj Ahmed.

Read more »

pm

hgjsgjsgjs
Read more »