Professional Documents
Culture Documents
Al - Rouman (223002036) PDF
Al - Rouman (223002036) PDF
C Student Details
Name ID
1. MD.AL-Rouman 223002036
[For Teachers use only: Don’t Write Anything inside this box]
Lab Report Status
Marks: ………………………………… Signature:.....................
Comments:.............................................. Date:..............................
2. OBJECTIVES/AIM [1]
1. To get better idea about C variables and constants.
2. To learn about arithmetic operations in C programming.
3. To learn about getting input from console.
4. To solve some basic problems using C program.
3. IMPLEMENTATION [2]
int main()
char ch='a';
while(ch<='z')
printf("%c\n",ch );
ch++;
return 0;
}
Code of problem 03#include <stdio.h>int main()
scanf("%d", &p);
while (p != 0){
\Code of problem 04
int main()
scanf("%d", &c);
lastDigit = c % 10;
c = c / 10;
firstDigit = c;
lastDigit = c % 10;
}
sum=sum+t;
t=(t*10)+1;
}
printf("\nThe Sum is : %ld\n",sum);
Cod
e of problem 09
Here included all the problems that we were given was so much easy. So that there was no issue
to solve those problems. After solving those problems this helped me to improve the idea of
using variables and some arithmetic operations.So I had to make an equation. Overall this
assignment helped me to practicing .