Practical 8
Practical 8
Input :
#include <stdio.h>
int main() {
printf("\n");
return 0;
Output :
NIL GADHIYA Practical 8 23SE02IE068
Aim 2 : Write a program to print even number with the range between 1 to
100.
Input :
#include <stdio.h>
int main() {
if (i % 2 == 0) {
printf("\n");
return 0;
Output :
NIL GADHIYA Practical 8 23SE02IE068
e.g. N=5
* *
* * *
* * * *
* * * * *
Input :
#include <stdio.h>
int main() {
int N;
scanf("%d", &N);
printf("* ");
printf("\n");
return 0;
}
NIL GADHIYA Practical 8 23SE02IE068
Output :